diff options
author | Anatol Belski <ab@php.net> | 2014-10-16 18:50:19 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-16 18:50:19 +0200 |
commit | aac7b1db7c9df59ffb0860de7692c653719cf4d0 (patch) | |
tree | 1fe1bdc2ffc380a0eaeea069ed5cbb0176eb7715 /ext/pdo_mysql/pdo_mysql.c | |
parent | 073c79b8b539fbbfc540db1cb1a15dfba5358f24 (diff) | |
download | php-git-aac7b1db7c9df59ffb0860de7692c653719cf4d0.tar.gz |
converted ext/sqlite and ext/pdo_mysql to use static tsrmls cache
Diffstat (limited to 'ext/pdo_mysql/pdo_mysql.c')
-rw-r--r-- | ext/pdo_mysql/pdo_mysql.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pdo_mysql/pdo_mysql.c b/ext/pdo_mysql/pdo_mysql.c index d9c04470a4..82dbdbc83a 100644 --- a/ext/pdo_mysql/pdo_mysql.c +++ b/ext/pdo_mysql/pdo_mysql.c @@ -32,6 +32,9 @@ #include "php_pdo_mysql_int.h" #ifdef COMPILE_DL_PDO_MYSQL +#ifdef ZTS +ZEND_TSRMLS_CACHE_DEFINE; +#endif ZEND_GET_MODULE(pdo_mysql) #endif @@ -206,6 +209,9 @@ static PHP_RSHUTDOWN_FUNCTION(pdo_mysql) */ static PHP_GINIT_FUNCTION(pdo_mysql) { +#if defined(COMPILE_DL_PDO_MYSQL) && defined(ZTS) +ZEND_TSRMLS_CACHE_UPDATE; +#endif #ifndef PHP_WIN32 pdo_mysql_globals->default_socket = NULL; #endif |