summaryrefslogtreecommitdiff
path: root/ext/simplexml/php_simplexml.h
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2003-10-26 16:00:58 +0000
committerRob Richards <rrichards@php.net>2003-10-26 16:00:58 +0000
commit5191cd3e99705b3c0715789258992228f8bb9c50 (patch)
tree910c243df6c3d63394d4f8bfa99af94d7a3003e6 /ext/simplexml/php_simplexml.h
parent09c09f42794e614964937f23c3841ed4ca38770c (diff)
downloadphp-git-5191cd3e99705b3c0715789258992228f8bb9c50.tar.gz
add interop with dom - simplexml_import_dom
change write behavior on elements to change actual contents change clone method to clone node and not document fix a few libxml mem leaks
Diffstat (limited to 'ext/simplexml/php_simplexml.h')
-rw-r--r--ext/simplexml/php_simplexml.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/ext/simplexml/php_simplexml.h b/ext/simplexml/php_simplexml.h
index 8bc0cf55c2..1b325ca9cd 100644
--- a/ext/simplexml/php_simplexml.h
+++ b/ext/simplexml/php_simplexml.h
@@ -34,6 +34,7 @@ extern zend_module_entry simplexml_module_entry;
#include "TSRM.h"
#endif
+#include "ext/libxml/php_libxml.h"
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/tree.h>
@@ -52,17 +53,17 @@ PHP_RSHUTDOWN_FUNCTION(simplexml);
PHP_MINFO_FUNCTION(simplexml);
typedef struct {
- void *ptr;
- int refcount;
-} simplexml_ref_obj;
+ xmlHashTablePtr nsmap;
+ int refcount;
+} simplexml_nsmap;
typedef struct {
zend_object zo;
- xmlNodePtr node;
- simplexml_ref_obj *document;
- xmlHashTablePtr nsmap;
- xmlXPathContextPtr xpath;
+ php_libxml_node_ptr *node;
+ php_libxml_ref_obj *document;
HashTable *properties;
+ simplexml_nsmap *nsmapptr;
+ xmlXPathContextPtr xpath;
} php_sxe_object;