php-src/Zend/tests/fake_closure_in_internal_func_leaks.phpt
Ilija Tovilo cc9dddea38
Fix fake closure leaking when called from internal func
Introduced in 8e49d7f32f.

ZEND_CALL_RELEASE_THIS was previously not handled for internal calls but
just for user calls in the zend_leave_helper.

Closes GH-9884
2022-11-03 14:31:47 +01:00

16 lines
182 B
PHP

--TEST--
Fake closure called from internal function leaks
--FILE--
<?php
$c = \is_array(...);
var_dump(array_filter([[]], $c));
?>
--EXPECT--
array(1) {
[0]=>
array(0) {
}
}