Merge branch 'PHP-7.3' into PHP-7.4

This commit is contained in:
Nikita Popov 2019-07-12 16:51:52 +02:00
commit 79b5b1a97f

View file

@ -2234,7 +2234,7 @@ static xmlNodePtr to_xml_array(encodeTypePtr type, zval *data, int style, xmlNod
} else { } else {
add_next_index_zval(&array_copy, val); add_next_index_zval(&array_copy, val);
} }
Z_ADDREF_P(val); Z_TRY_ADDREF_P(val);
iter->funcs->move_forward(iter); iter->funcs->move_forward(iter);
if (EG(exception)) { if (EG(exception)) {
@ -2815,7 +2815,7 @@ static zval *guess_zval_convert(zval *ret, encodeTypePtr type, xmlNodePtr data)
object_init_ex(&soapvar, soap_var_class_entry); object_init_ex(&soapvar, soap_var_class_entry);
add_property_long(&soapvar, "enc_type", enc->details.type); add_property_long(&soapvar, "enc_type", enc->details.type);
Z_DELREF_P(ret); Z_TRY_DELREF_P(ret);
add_property_zval(&soapvar, "enc_value", ret); add_property_zval(&soapvar, "enc_value", ret);
parse_namespace(type_name, &cptype, &ns); parse_namespace(type_name, &cptype, &ns);
nsptr = xmlSearchNs(data->doc, data, BAD_CAST(ns)); nsptr = xmlSearchNs(data->doc, data, BAD_CAST(ns));