summaryrefslogtreecommitdiff
path: root/ext/pgsql/php_pgsql.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-16 13:47:43 +0200
committerAnatol Belski <ab@php.net>2014-10-16 13:47:43 +0200
commit7f1107de9167ab1443a13491f5b70aa3f10fd323 (patch)
treeb3650174f95295198e6233c17adcbdf61b827329 /ext/pgsql/php_pgsql.h
parent0e7682c63c10e374d76a4f93974f7e64716cf234 (diff)
downloadphp-git-7f1107de9167ab1443a13491f5b70aa3f10fd323.tar.gz
converted ext/ereg, ext/phar and ext/pgsql for static tsrmls usage
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
-rw-r--r--ext/pgsql/php_pgsql.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h
index 661c02f77f..18f1bbe77f 100644
--- a/ext/pgsql/php_pgsql.h
+++ b/ext/pgsql/php_pgsql.h
@@ -322,7 +322,10 @@ ZEND_END_MODULE_GLOBALS(pgsql)
ZEND_EXTERN_MODULE_GLOBALS(pgsql)
#ifdef ZTS
-# define PGG(v) TSRMG(pgsql_globals_id, zend_pgsql_globals *, v)
+# define PGG(v) ZEND_TSRMG(pgsql_globals_id, zend_pgsql_globals *, v)
+# ifdef COMPILE_DL_PGSQL
+ZEND_TSRMLS_CACHE_EXTERN;
+# endif
#else
# define PGG(v) (pgsql_globals.v)
#endif