php-src/Zend/tests/bug_debug_backtrace.phpt

27 lines
375 B
Plaintext
Raw Normal View History

2005-02-01 19:03:50 +00:00
--TEST--
Bug - crash in debug_backtrace when trace starts in eval
--FILE--
<?php
function foo() {
bar();
}
2018-09-16 17:16:42 +00:00
2005-02-01 19:03:50 +00:00
function bar() {
boo();
}
2018-09-16 17:16:42 +00:00
2005-02-01 19:03:50 +00:00
function boo(){
debug_print_backtrace();
}
2018-09-16 17:16:42 +00:00
2005-02-01 19:03:50 +00:00
eval("foo();");
2018-09-16 17:16:42 +00:00
2005-02-01 19:03:50 +00:00
echo "Done\n";
?>
--EXPECTF--
#0 boo() called at [%s:%d]
#1 bar() called at [%s:%d]
#2 foo() called at [%s(%d) : eval()'d code:1]
#3 eval() called at [%s:%d]
Done