php-src/Zend/tests/bug78973.phpt

19 lines
326 B
Plaintext
Raw Normal View History

--TEST--
Bug #78973: Destructor during CV freeing causes segfault if opline never saved
--INI--
opcache.optimization_level=0
--FILE--
<?php
function test($x) {
}
test(new class {
public function __destruct() {
debug_print_backtrace();
}
});
?>
--EXPECTF--
2019-12-16 18:31:22 +00:00
#0 class@anonymous->__destruct() called at [%s:%d]