com php-src: init mbstring tsrm_ls_cache on MINIT: ext/mbstring/mbstring.c

From: Date: Wed, 11 Mar 2015 22:42:39 +0000
Subject: com php-src: init mbstring tsrm_ls_cache on MINIT: ext/mbstring/mbstring.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85467@lists.php.net to get a copy of this message
Commit: 4ee0395a4ab230fb5b3274ee9476cbcc00ccb872 Author: Anatol Belski <ab@php.net> Wed, 11 Mar 2015 23:42:39 +0100 Parents: 6c5d7c29f786a205053fb90126b2c1a2bb46ff14 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4ee0395a4ab230fb5b3274ee9476cbcc00ccb872 Log: init mbstring tsrm_ls_cache on MINIT as some globals are accessed there already Changed paths: M ext/mbstring/mbstring.c Diff: diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index d2c9ace..ded7934 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -1546,6 +1546,9 @@ static PHP_GSHUTDOWN_FUNCTION(mbstring) /* {{{ PHP_MINIT_FUNCTION(mbstring) */ PHP_MINIT_FUNCTION(mbstring) { +#if defined(COMPILE_DL_MBSTRING) && defined(ZTS) +ZEND_TSRMLS_CACHE_UPDATE(); +#endif __mbfl_allocators = &_php_mb_allocators; REGISTER_INI_ENTRIES();

« previous php.cvs (#85467) next »