summaryrefslogtreecommitdiff
path: root/main/php_globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_globals.h')
-rw-r--r--main/php_globals.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/main/php_globals.h b/main/php_globals.h
index bdcf3acc60..0499e8c133 100644
--- a/main/php_globals.h
+++ b/main/php_globals.h
@@ -25,20 +25,10 @@
typedef struct _php_core_globals php_core_globals;
#ifdef ZTS
-# define PLS_D php_core_globals *core_globals
-# define PLS_DC , PLS_D
-# define PLS_C core_globals
-# define PLS_CC , PLS_C
-# define PG(v) (core_globals->v)
-# define PLS_FETCH() php_core_globals *core_globals = ts_resource(core_globals_id)
+# define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
extern PHPAPI int core_globals_id;
#else
-# define PLS_D
-# define PLS_DC
-# define PLS_C
-# define PLS_CC
# define PG(v) (core_globals.v)
-# define PLS_FETCH()
extern ZEND_API struct _php_core_globals core_globals;
#endif