mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- cleanup ze1/ze2
This commit is contained in:
parent
ed58636f00
commit
5a7bd45c1a
5 changed files with 15 additions and 236 deletions
|
@ -1195,9 +1195,7 @@ static void set_zval_property(zval* object, char* name, zval* val TSRMLS_DC)
|
|||
|
||||
old_scope = EG(scope);
|
||||
EG(scope) = Z_OBJCE_P(object);
|
||||
#ifdef ZEND_ENGINE_2
|
||||
Z_DELREF_P(val);
|
||||
#endif
|
||||
add_property_zval(object, name, val);
|
||||
EG(scope) = old_scope;
|
||||
}
|
||||
|
@ -2928,9 +2926,7 @@ static zval *guess_zval_convert(encodeTypePtr type, xmlNodePtr data TSRMLS_DC)
|
|||
MAKE_STD_ZVAL(soapvar);
|
||||
object_init_ex(soapvar, soap_var_class_entry);
|
||||
add_property_long(soapvar, "enc_type", enc->details.type);
|
||||
#ifdef ZEND_ENGINE_2
|
||||
Z_DELREF_P(ret);
|
||||
#endif
|
||||
add_property_zval(soapvar, "enc_value", ret);
|
||||
parse_namespace(type_name, &cptype, &ns);
|
||||
nsptr = xmlSearchNs(data->doc, data, BAD_CAST(ns));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue