move SG to use global tsrmls pointer

This commit is contained in:
Anatol Belski 2014-10-15 18:23:41 +02:00
parent aff66a94a6
commit 2bddd58d32
2 changed files with 4 additions and 1 deletions

View file

@ -142,7 +142,7 @@ typedef struct _sapi_globals_struct {
BEGIN_EXTERN_C()
#ifdef ZTS
# define SG(v) TSRMG(sapi_globals_id, sapi_globals_struct *, v)
# define SG(v) ZEND_TSRMG(sapi_globals_id, sapi_globals_struct *, v)
SAPI_API extern int sapi_globals_id;
#else
# define SG(v) (sapi_globals.v)