1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Use zval_ptr_dtor_nogc() for callable in ext/xslt (#11356)

It cannot contain cycles because it's either a string or an array with 2 strings.
This commit is contained in:
Niels Dossche
2023-06-02 12:58:00 +02:00
committed by GitHub
parent 15402454a6
commit f8faa8b2ee

View File

@@ -289,7 +289,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
zval_ptr_dtor(&retval);
}
zend_string_release_ex(callable, 0);
zval_ptr_dtor(&handler);
zval_ptr_dtor_nogc(&handler);
if (fci.param_count > 0) {
for (i = 0; i < nargs - 1; i++) {
zval_ptr_dtor(&args[i]);