mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
converted ext/sqlite and ext/pdo_mysql to use static tsrmls cache
This commit is contained in:
parent
073c79b8b5
commit
aac7b1db7c
8 changed files with 23 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue