From aac7b1db7c9df59ffb0860de7692c653719cf4d0 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 16 Oct 2014 18:50:19 +0200 Subject: converted ext/sqlite and ext/pdo_mysql to use static tsrmls cache --- ext/pdo_mysql/pdo_mysql.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext/pdo_mysql/pdo_mysql.c') 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 -- cgit v1.2.1