summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
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/pgsql.c
parent0e7682c63c10e374d76a4f93974f7e64716cf234 (diff)
downloadphp-git-7f1107de9167ab1443a13491f5b70aa3f10fd323.tar.gz
converted ext/ereg, ext/phar and ext/pgsql for static tsrmls usage
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 207764b165..3645e0a897 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -771,6 +771,9 @@ zend_module_entry pgsql_module_entry = {
/* }}} */
#ifdef COMPILE_DL_PGSQL
+#ifdef ZTS
+ZEND_TSRMLS_CACHE_DEFINE;
+#endif
ZEND_GET_MODULE(pgsql)
#endif
@@ -1090,6 +1093,9 @@ PHP_INI_END()
*/
static PHP_GINIT_FUNCTION(pgsql)
{
+#if defined(COMPILE_DL_PGSQL) && defined(ZTS)
+ ZEND_TSRMLS_CACHE_UPDATE;
+#endif
memset(pgsql_globals, 0, sizeof(zend_pgsql_globals));
/* Initilize notice message hash at MINIT only */
zend_hash_init_ex(&pgsql_globals->notices, 0, NULL, PHP_PGSQL_NOTICE_PTR_DTOR, 1, 0);