2005-02-01 19:03:50 +00:00
|
|
|
--TEST--
|
|
|
|
Bug - crash in debug_backtrace when trace starts in eval
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
function foo() {
|
|
|
|
bar();
|
|
|
|
}
|
2008-05-26 14:33:44 +00:00
|
|
|
|
2005-02-01 19:03:50 +00:00
|
|
|
function bar() {
|
|
|
|
boo();
|
|
|
|
}
|
2008-05-26 14:33:44 +00:00
|
|
|
|
2005-02-01 19:03:50 +00:00
|
|
|
function boo(){
|
|
|
|
debug_print_backtrace();
|
|
|
|
}
|
2008-05-26 14:33:44 +00:00
|
|
|
|
2005-02-01 19:03:50 +00:00
|
|
|
eval("foo();");
|
2008-05-26 14:33:44 +00:00
|
|
|
|
2005-02-01 19:03:50 +00:00
|
|
|
echo "Done\n";
|
|
|
|
?>
|
|
|
|
===DONE===
|
|
|
|
--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
|
|
|
|
===DONE===
|