Revert "fix #72155 (use-after-free caused by get_zval_xmlrpc_type)"

This reverts commit 1690dcb827.
This commit is contained in:
Xinchen Hui 2016-05-31 11:32:09 +08:00
parent 2524ab9e67
commit a811b5e38d

View file

@ -1368,10 +1368,10 @@ XMLRPC_VALUE_TYPE get_zval_xmlrpc_type(zval* value, zval* newvalue) /* {{{ */
if ((type == xmlrpc_base64 && Z_TYPE_P(value) == IS_OBJECT) || type == xmlrpc_datetime) {
if ((val = zend_hash_str_find(Z_OBJPROP_P(value), OBJECT_VALUE_ATTR, sizeof(OBJECT_VALUE_ATTR) - 1)) != NULL) {
ZVAL_COPY(newvalue, val);
ZVAL_COPY_VALUE(newvalue, val);
}
} else {
ZVAL_COPY(newvalue, value);
ZVAL_COPY_VALUE(newvalue, value);
}
}
}