summaryrefslogtreecommitdiff
path: root/ext/simplexml/php_simplexml.h
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2003-06-14 15:32:23 (GMT)
committerRob Richards <rrichards@php.net>2003-06-14 15:32:23 (GMT)
commit09eb38ec10d8393e583565ce7c193bf79b4491a8 (patch)
treeefc7012cebf3242b9275e6809965ffc4855169e4 /ext/simplexml/php_simplexml.h
parent14fad0e5d8b54c1836e4469100bd0f0f16b85fcd (diff)
downloadphp-09eb38ec10d8393e583565ce7c193bf79b4491a8.tar.gz
interoperability support
fix some memleak scenarios
Diffstat (limited to 'ext/simplexml/php_simplexml.h')
-rw-r--r--ext/simplexml/php_simplexml.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/simplexml/php_simplexml.h b/ext/simplexml/php_simplexml.h
index b57ad28..233452d 100644
--- a/ext/simplexml/php_simplexml.h
+++ b/ext/simplexml/php_simplexml.h
@@ -26,8 +26,10 @@ extern zend_module_entry simplexml_module_entry;
#ifdef PHP_WIN32
#define PHP_SIMPLEXML_API __declspec(dllexport)
+#define SIMPLEXML_IMPORT __declspec(dllimport)
#else
#define PHP_SIMPLEXML_API
+#define SIMPLEXML_IMPORT extern
#endif
#ifdef ZTS
@@ -58,10 +60,10 @@ typedef struct {
typedef struct {
zend_object zo;
- xmlHashTablePtr nsmap;
+ xmlNodePtr node;
simplexml_ref_obj *document;
+ xmlHashTablePtr nsmap;
xmlXPathContextPtr xpath;
- xmlNodePtr node;
} php_sxe_object;