ext/iconv, ext/json and ext/session use static tsrmls pointer

This commit is contained in:
Anatol Belski 2014-10-17 14:16:40 +02:00
parent 83b8e281db
commit fea10f6a5e
12 changed files with 37 additions and 9 deletions

View file

@ -44,7 +44,10 @@ ZEND_BEGIN_MODULE_GLOBALS(json)
ZEND_END_MODULE_GLOBALS(json)
#ifdef ZTS
# define JSON_G(v) TSRMG(json_globals_id, zend_json_globals *, v)
# define JSON_G(v) ZEND_TSRMG(json_globals_id, zend_json_globals *, v)
# ifdef COMPILE_DL_JSON
ZEND_TSRMLS_CACHE_EXTERN;
# endif
#else
# define JSON_G(v) (json_globals.v)
#endif