mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix segfault and assertion failure with refcounted props and arrays Fix incorrect uri check in SOAP caching Fix bug #66150: SOAP WSDL cache race condition causes Segmentation Fault
This commit is contained in:
commit
7da6c0f1db
4 changed files with 77 additions and 6 deletions
|
@ -1561,10 +1561,12 @@ static zval *to_zval_object_ex(zval *ret, encodeTypePtr type, xmlNodePtr data, z
|
|||
if (Z_TYPE_P(prop) != IS_ARRAY) {
|
||||
/* Convert into array */
|
||||
array_init(&arr);
|
||||
Z_ADDREF_P(prop);
|
||||
Z_TRY_ADDREF_P(prop);
|
||||
add_next_index_zval(&arr, prop);
|
||||
set_zval_property(ret, (char*)trav->name, &arr);
|
||||
prop = &arr;
|
||||
} else {
|
||||
SEPARATE_ARRAY(prop);
|
||||
}
|
||||
/* Add array element */
|
||||
add_next_index_zval(prop, &tmpVal);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue