Skip to content

Commit f8faa8b

Browse files
authored
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.
1 parent 1540245 commit f8faa8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/xsl/xsltprocessor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
289289
zval_ptr_dtor(&retval);
290290
}
291291
zend_string_release_ex(callable, 0);
292-
zval_ptr_dtor(&handler);
292+
zval_ptr_dtor_nogc(&handler);
293293
if (fci.param_count > 0) {
294294
for (i = 0; i < nargs - 1; i++) {
295295
zval_ptr_dtor(&args[i]);

0 commit comments

Comments
 (0)