com php-src: Simplify tsrm cache update: ext/soap/soap.c
| From: | Anatol Belski | Date: | Sun, 22 Oct 2017 09:57:35 +0000 |
| Subject: | com php-src: Simplify tsrm cache update: ext/soap/soap.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99836@lists.php.net to get a copy of this message | ||
Commit: cbc8f8327f05c5dd01732625ca6674ff768aab55
Author: Anatol Belski <ab@php.net> Sun, 22 Oct 2017 11:57:35 +0200
Parents: 202e7ce65ccb79369ca76120c4d933d2e79ca7da
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cbc8f8327f05c5dd01732625ca6674ff768aab55
Log:
Simplify tsrm cache update
Changed paths:
M ext/soap/soap.c
Diff:
diff --git a/ext/soap/soap.c b/ext/soap/soap.c
index 21deb4e..2fbc47f 100644
--- a/ext/soap/soap.c
+++ b/ext/soap/soap.c
@@ -568,6 +568,9 @@ static void php_soap_prepare_globals()
static void php_soap_init_globals(zend_soap_globals *soap_globals)
{
+#if defined(COMPILE_DL_SOAP) && defined(ZTS)
+ ZEND_TSRMLS_CACHE_UPDATE();
+#endif
soap_globals->defEnc = defEnc;
soap_globals->defEncIndex = defEncIndex;
soap_globals->defEncNs = defEncNs;
@@ -597,9 +600,6 @@ PHP_MSHUTDOWN_FUNCTION(soap)
PHP_RINIT_FUNCTION(soap)
{
-#if defined(COMPILE_DL_SOAP) && defined(ZTS)
- ZEND_TSRMLS_CACHE_UPDATE();
-#endif
SOAP_GLOBAL(typemap) = NULL;
SOAP_GLOBAL(use_soap_error_handler) = 0;
SOAP_GLOBAL(error_code) = NULL;
@@ -637,9 +637,6 @@ PHP_MINIT_FUNCTION(soap)
{
zend_class_entry ce;
-#if defined(COMPILE_DL_SOAP) && defined(ZTS)
- ZEND_TSRMLS_CACHE_UPDATE();
-#endif
/* TODO: add ini entry for always use soap errors */
php_soap_prepare_globals();
ZEND_INIT_MODULE_GLOBALS(soap, php_soap_init_globals, NULL);