summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-07-29 10:35:57 +0200
committerAnatol Belski <ab@php.net>2015-07-29 10:36:30 +0200
commit0787cd60ed3d0c8c8c8ff7e49b9bb3587bf33b64 (patch)
tree77fd146f85e4847ad64421f646dc7d98000ce97e /ext/pcre/php_pcre.h
parent43cdfd9a82f99ddfc21c3b11bdebc565a4349634 (diff)
downloadphp-git-0787cd60ed3d0c8c8c8ff7e49b9bb3587bf33b64.tar.gz
first stone on using the unified globals accessor
Diffstat (limited to 'ext/pcre/php_pcre.h')
-rw-r--r--ext/pcre/php_pcre.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/ext/pcre/php_pcre.h b/ext/pcre/php_pcre.h
index fb155c467e..d3fe0b5d10 100644
--- a/ext/pcre/php_pcre.h
+++ b/ext/pcre/php_pcre.h
@@ -82,12 +82,7 @@ ZEND_BEGIN_MODULE_GLOBALS(pcre)
ZEND_END_MODULE_GLOBALS(pcre)
PHPAPI ZEND_EXTERN_MODULE_GLOBALS(pcre);
-
-#ifdef ZTS
-# define PCRE_G(v) ZEND_TSRMG(pcre_globals_id, zend_pcre_globals *, v)
-#else
-# define PCRE_G(v) (pcre_globals.v)
-#endif
+#define PCRE_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(pcre, v)
#else