converted ext/sqlite and ext/pdo_mysql to use static tsrmls cache

This commit is contained in:
Anatol Belski 2014-10-16 18:50:19 +02:00
parent 073c79b8b5
commit aac7b1db7c
8 changed files with 23 additions and 5 deletions

View file

@ -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