mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
de6e401e05
This makes debug_print_backtrace() use the same formatting as exception backtraces. The only difference is that the final #{main} is omitted, because it wouldn't make sense for limited backtraces, and wasn't there previously either.
19 lines
315 B
PHP
19 lines
315 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 %s(%d): class@anonymous->__destruct()
|