RC manipulation cleanup 2

This commit is contained in:
Xinchen Hui 2017-11-02 12:13:35 +08:00
parent 3fa0cee640
commit d56a534acc
17 changed files with 118 additions and 167 deletions

View file

@ -764,9 +764,7 @@ PHP_FUNCTION(xsl_xsltprocessor_set_parameter)
RETURN_FALSE;
}
convert_to_string_ex(entry);
if (Z_REFCOUNTED_P(entry)) {
Z_ADDREF_P(entry);
}
Z_TRY_ADDREF_P(entry);
zend_hash_update(intern->parameter, string_key, entry);
} ZEND_HASH_FOREACH_END();
RETURN_TRUE;