mirror of
https://github.com/php/php-src.git
synced 2024-12-17 05:50:14 +08: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.
17 lines
257 B
PHP
17 lines
257 B
PHP
--TEST--
|
|
Bug #73916 (zend_print_flat_zval_r doesn't consider reference)
|
|
--FILE--
|
|
<?php
|
|
$a = array('a');
|
|
class b{};
|
|
$b = new b;
|
|
$test[] =& $a;
|
|
$test[] =& $b;
|
|
test($test);
|
|
function test() {
|
|
debug_print_backtrace();
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
#0 %s(%d): test(Array)
|