summaryrefslogtreecommitdiff
path: root/ext/reflection
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-15 19:19:23 +0200
committerAnatol Belski <ab@php.net>2014-10-15 19:19:23 +0200
commit0490a322490ecf19aa428d2790a95db7ac953e00 (patch)
treec22a8c02ac370d9e48b2500cddf2fef3f02714b4 /ext/reflection
parent5747327775517b331448ef2094ec83ef08fcc54c (diff)
downloadphp-git-0490a322490ecf19aa428d2790a95db7ac953e00.tar.gz
more exts converted for static tsrm ls pointer
mbstring, pcre, reflection
Diffstat (limited to 'ext/reflection')
-rwxr-xr-xext/reflection/config.m42
-rwxr-xr-xext/reflection/config.w324
-rw-r--r--ext/reflection/php_reflection.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/reflection/config.m4 b/ext/reflection/config.m4
index 702663677b..334d7dc471 100755
--- a/ext/reflection/config.m4
+++ b/ext/reflection/config.m4
@@ -2,4 +2,4 @@ dnl $Id$
dnl config.m4 for extension reflection
AC_DEFINE(HAVE_REFLECTION, 1, [Whether Reflection is enabled])
-PHP_NEW_EXTENSION(reflection, php_reflection.c, no)
+PHP_NEW_EXTENSION(reflection, php_reflection.c, no, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
diff --git a/ext/reflection/config.w32 b/ext/reflection/config.w32
index 724bf7bde4..2eb33c66ee 100755
--- a/ext/reflection/config.w32
+++ b/ext/reflection/config.w32
@@ -1,6 +1,6 @@
// $Id$
// vim:ft=javascript
-EXTENSION("reflection", "php_reflection.c", false /* never shared */);
+EXTENSION("reflection", "php_reflection.c", false /* never shared */, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE('HAVE_REFLECTION', 1, 'Reflection support enabled');
-PHP_REFLECTION="yes"; \ No newline at end of file
+PHP_REFLECTION="yes";
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 57e11945c1..73da5c0a5e 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -70,7 +70,7 @@ ZEND_END_MODULE_GLOBALS(reflection)
#ifdef ZTS
# define REFLECTION_G(v) \
- TSRMG(reflection_globals_id, zend_reflection_globals*, v)
+ ZEND_TSRMG(reflection_globals_id, zend_reflection_globals*, v)
extern int reflection_globals_id;
#else
# define REFLECTION_G(v) (reflection_globals.v)