ext/libxml, ext/xml and ext/soap use static tsrmls pointer

This commit is contained in:
Anatol Belski 2014-10-17 14:31:17 +02:00
parent fea10f6a5e
commit 5749b4a997
12 changed files with 36 additions and 9 deletions

View file

@ -142,7 +142,10 @@ PHPAPI zend_string *xml_utf8_encode(const char *, size_t, const XML_Char *);
#define phpext_xml_ptr xml_module_ptr
#ifdef ZTS
#define XML(v) TSRMG(xml_globals_id, zend_xml_globals *, v)
#define XML(v) ZEND_TSRMG(xml_globals_id, zend_xml_globals *, v)
#ifdef COMPILE_DL_XML
ZEND_TSRMLS_CACHE_EXTERN;
#endif
#else
#define XML(v) (xml_globals.v)
#endif