debug_print_backtrace_limit.phpt 782 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. debug_print_backtrace limit
  3. --FILE--
  4. <?php
  5. function a() {
  6. b();
  7. }
  8. function b() {
  9. c();
  10. }
  11. function c() {
  12. debug_print_backtrace(0, 1);
  13. debug_print_backtrace(0, 2);
  14. debug_print_backtrace(0, 0);
  15. debug_print_backtrace(0, 4);
  16. }
  17. a();
  18. ?>
  19. --EXPECTF--
  20. #0 c() called at [%sdebug_print_backtrace_limit.php:7]
  21. #0 c() called at [%sdebug_print_backtrace_limit.php:7]
  22. #1 b() called at [%sdebug_print_backtrace_limit.php:3]
  23. #0 c() called at [%sdebug_print_backtrace_limit.php:7]
  24. #1 b() called at [%sdebug_print_backtrace_limit.php:3]
  25. #2 a() called at [%sdebug_print_backtrace_limit.php:17]
  26. #0 c() called at [%sdebug_print_backtrace_limit.php:7]
  27. #1 b() called at [%sdebug_print_backtrace_limit.php:3]
  28. #2 a() called at [%sdebug_print_backtrace_limit.php:17]