diff options
author | Anatol Belski <ab@php.net> | 2015-07-29 10:35:57 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-07-29 10:36:30 +0200 |
commit | 0787cd60ed3d0c8c8c8ff7e49b9bb3587bf33b64 (patch) | |
tree | 77fd146f85e4847ad64421f646dc7d98000ce97e /ext/spl/php_spl.h | |
parent | 43cdfd9a82f99ddfc21c3b11bdebc565a4349634 (diff) | |
download | php-git-0787cd60ed3d0c8c8c8ff7e49b9bb3587bf33b64.tar.gz |
first stone on using the unified globals accessor
Diffstat (limited to 'ext/spl/php_spl.h')
-rw-r--r-- | ext/spl/php_spl.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/spl/php_spl.h b/ext/spl/php_spl.h index 015ada4ac2..bcee32ea8b 100644 --- a/ext/spl/php_spl.h +++ b/ext/spl/php_spl.h @@ -68,13 +68,8 @@ ZEND_BEGIN_MODULE_GLOBALS(spl) int autoload_running; ZEND_END_MODULE_GLOBALS(spl) -#ifdef ZTS -# define SPL_G(v) ZEND_TSRMG(spl_globals_id, zend_spl_globals *, v) -extern int spl_globals_id; -#else -# define SPL_G(v) (spl_globals.v) -extern zend_spl_globals spl_globals; -#endif +ZEND_EXTERN_MODULE_GLOBALS(spl); +#define SPL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(spl, v) PHP_FUNCTION(spl_classes); PHP_FUNCTION(class_parents); |