diff options
| author | Dmitry Stogov <dmitry@php.net> | 2006-06-13 13:12:20 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2006-06-13 13:12:20 +0000 |
| commit | 943960c324597281c02c42ae2ead2c2d7ef01be7 (patch) | |
| tree | 52a64885afab0efae220d8bd3eb2867b1022f8e7 /ext/xml/php_xml.h | |
| parent | 2cbde06400d2caf58d7f789b828f8d663980c8d2 (diff) | |
| download | php-git-943960c324597281c02c42ae2ead2c2d7ef01be7.tar.gz | |
Added automatic module globals management
Diffstat (limited to 'ext/xml/php_xml.h')
| -rw-r--r-- | ext/xml/php_xml.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
