From: Nikita Popov Date: Mon, 5 May 2014 19:16:49 +0000 (+0200) Subject: Initialize CG(one_time_string) in ZTS as well X-Git-Tag: POST_PHPNG_MERGE~412^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=211d32c81429730e2692c65577d021616a525726;p=php Initialize CG(one_time_string) in ZTS as well --- diff --git a/Zend/zend_string.c b/Zend/zend_string.c index 80571ec390..360ff2966e 100644 --- a/Zend/zend_string.c +++ b/Zend/zend_string.c @@ -57,9 +57,6 @@ void zend_interned_strings_init(TSRMLS_D) str = STR_ALLOC(sizeof("")-1, 1); str->val[0] = '\000'; CG(empty_string) = zend_new_interned_string_int(str TSRMLS_CC); - - /* one char strings (the actual interned strings are going to be created by ext/opcache) */ - memset(CG(one_char_string), 0, sizeof(CG(one_char_string))); #else str = STR_ALLOC(sizeof("")-1, 1); str->val[0] = '\000'; @@ -67,6 +64,9 @@ void zend_interned_strings_init(TSRMLS_D) CG(empty_string) = str; #endif + /* one char strings (the actual interned strings are going to be created by ext/opcache) */ + memset(CG(one_char_string), 0, sizeof(CG(one_char_string))); + zend_new_interned_string = zend_new_interned_string_int; zend_interned_strings_snapshot = zend_interned_strings_snapshot_int; zend_interned_strings_restore = zend_interned_strings_restore_int; diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index a9032d0a73..c5b2b9fa1a 100644 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1544,7 +1544,7 @@ static void pdo_dbh_free_storage(zend_object *std TSRMLS_DC) dbh->methods->persistent_shutdown(dbh TSRMLS_CC); } zend_object_std_dtor(std TSRMLS_CC); - dbh_free(dbh); + dbh_free(dbh TSRMLS_CC); } zend_object *pdo_dbh_new(zend_class_entry *ce TSRMLS_DC)