summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/php_pdo_mysql_int.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-16 18:50:19 +0200
committerAnatol Belski <ab@php.net>2014-10-16 18:50:19 +0200
commitaac7b1db7c9df59ffb0860de7692c653719cf4d0 (patch)
tree1fe1bdc2ffc380a0eaeea069ed5cbb0176eb7715 /ext/pdo_mysql/php_pdo_mysql_int.h
parent073c79b8b539fbbfc540db1cb1a15dfba5358f24 (diff)
downloadphp-git-aac7b1db7c9df59ffb0860de7692c653719cf4d0.tar.gz
converted ext/sqlite and ext/pdo_mysql to use static tsrmls cache
Diffstat (limited to 'ext/pdo_mysql/php_pdo_mysql_int.h')
-rw-r--r--ext/pdo_mysql/php_pdo_mysql_int.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pdo_mysql/php_pdo_mysql_int.h b/ext/pdo_mysql/php_pdo_mysql_int.h
index f6cdb0a8f2..accac8a25e 100644
--- a/ext/pdo_mysql/php_pdo_mysql_int.h
+++ b/ext/pdo_mysql/php_pdo_mysql_int.h
@@ -83,7 +83,10 @@ ZEND_END_MODULE_GLOBALS(pdo_mysql)
ZEND_EXTERN_MODULE_GLOBALS(pdo_mysql)
#ifdef ZTS
-#define PDO_MYSQL_G(v) TSRMG(pdo_mysql_globals_id, zend_pdo_mysql_globals *, v)
+#define PDO_MYSQL_G(v) ZEND_TSRMG(pdo_mysql_globals_id, zend_pdo_mysql_globals *, v)
+# ifdef COMPILE_DL_PDO_MYSQL
+ZEND_TSRMLS_CACHE_EXTERN;
+# endif
#else
#define PDO_MYSQL_G(v) (pdo_mysql_globals.v)
#endif