mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ext/iconv, ext/json and ext/session use static tsrmls pointer
This commit is contained in:
parent
83b8e281db
commit
fea10f6a5e
12 changed files with 37 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue