bug_debug_backtrace.phpt 829 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. Bug - crash in debug_backtrace when trace starts in eval
  3. --FILE--
  4. <?php
  5. function foo() {
  6. bar();
  7. }
  8. function bar() {
  9. boo();
  10. }
  11. function boo(){
  12. debug_print_backtrace();
  13. }
  14. eval("foo();");
  15. echo "Done\n";
  16. ?>
  17. ===DONE===
  18. --EXPECTF--
  19. #0 boo() called at [%s:%d]
  20. #1 bar() called at [%s:%d]
  21. #2 foo() called at [%s(%d) : eval()'d code:1]
  22. #3 eval() called at [%s:%d]
  23. Done
  24. ===DONE===