mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
77e131da91
Otherwise opcache "inlines" the function, which causes a minor difference in destruction behavior.
20 lines
355 B
PHP
20 lines
355 B
PHP
--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--
|
|
#0 class@anonymous->__destruct() called at [%s:%d]
|
|
#1 test() called at [%s:%d]
|