From 1dbaae2795b756a3875c53da00b277f241cc04b8 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 15 Jun 2006 18:33:09 +0000 Subject: Added automatic module globals management --- ext/xml/php_xml.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/xml/php_xml.h') diff --git a/ext/xml/php_xml.h b/ext/xml/php_xml.h index a46a20d465..aa778cf825 100644 --- a/ext/xml/php_xml.h +++ b/ext/xml/php_xml.h @@ -45,9 +45,9 @@ extern zend_module_entry xml_module_entry; #error "UTF-16 Unicode support not implemented!" #endif -typedef struct { +ZEND_BEGIN_MODULE_GLOBALS(xml) XML_Char *default_encoding; -} php_xml_globals; +ZEND_END_MODULE_GLOBALS(xml) typedef struct { int index; @@ -147,7 +147,7 @@ PHPAPI char *xml_utf8_decode(const XML_Char *, int, int *, const XML_Char *); #define phpext_xml_ptr xml_module_ptr #ifdef ZTS -#define XML(v) TSRMG(xml_globals_id, php_xml_globals *, v) +#define XML(v) TSRMG(xml_globals_id, zend_xml_globals *, v) #else #define XML(v) (xml_globals.v) #endif -- cgit v1.2.1