mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix GH-19226: Segfault when spawning new thread in soap extension
Closes GH-19228.
This commit is contained in:
parent
2645663d9b
commit
29b38a1ced
2 changed files with 7 additions and 2 deletions
4
NEWS
4
NEWS
|
@ -19,6 +19,10 @@ PHP NEWS
|
||||||
. Fixed GH-19197: build broken with ZEND_STRL usage with memcpy
|
. Fixed GH-19197: build broken with ZEND_STRL usage with memcpy
|
||||||
when implemented as macro. (David Carlier)
|
when implemented as macro. (David Carlier)
|
||||||
|
|
||||||
|
- Soap:
|
||||||
|
. Fixed bug GH-19226 (Segfault when spawning new thread in soap extension).
|
||||||
|
(Florian Engelhardt)
|
||||||
|
|
||||||
- Sockets:
|
- Sockets:
|
||||||
. socket_set_option for multicast context throws a ValueError
|
. socket_set_option for multicast context throws a ValueError
|
||||||
when the socket family is not of AF_INET/AF_INET6 family. (David Carlier)
|
when the socket family is not of AF_INET/AF_INET6 family. (David Carlier)
|
||||||
|
|
|
@ -453,7 +453,6 @@ static void php_soap_init_globals(zend_soap_globals *soap_globals)
|
||||||
soap_globals->soap_version = SOAP_1_1;
|
soap_globals->soap_version = SOAP_1_1;
|
||||||
soap_globals->mem_cache = NULL;
|
soap_globals->mem_cache = NULL;
|
||||||
soap_globals->ref_map = NULL;
|
soap_globals->ref_map = NULL;
|
||||||
soap_globals->lang_en = zend_string_init_interned(ZEND_STRL("en"), true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PHP_MSHUTDOWN_FUNCTION(soap)
|
PHP_MSHUTDOWN_FUNCTION(soap)
|
||||||
|
@ -553,6 +552,8 @@ PHP_MINIT_FUNCTION(soap)
|
||||||
old_error_handler = zend_error_cb;
|
old_error_handler = zend_error_cb;
|
||||||
zend_error_cb = soap_error_handler;
|
zend_error_cb = soap_error_handler;
|
||||||
|
|
||||||
|
SOAP_GLOBAL(lang_en) = zend_string_init_interned(ZEND_STRL("en"), true);
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4205,7 +4206,7 @@ static xmlNodePtr serialize_zval(zval *val, sdlParamPtr param, const char *param
|
||||||
}
|
}
|
||||||
xmlParam = master_to_xml(enc, val, style, parent);
|
xmlParam = master_to_xml(enc, val, style, parent);
|
||||||
zval_ptr_dtor(&defval);
|
zval_ptr_dtor(&defval);
|
||||||
if (xmlParam != NULL) {
|
if (xmlParam != NULL) {
|
||||||
if (xmlParam->name == NULL || strcmp((char*)xmlParam->name, "BOGUS") == 0) {
|
if (xmlParam->name == NULL || strcmp((char*)xmlParam->name, "BOGUS") == 0) {
|
||||||
xmlNodeSetName(xmlParam, BAD_CAST(paramName));
|
xmlNodeSetName(xmlParam, BAD_CAST(paramName));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue