breakpoints_005.phpt 403 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Test breakpoint into function context
  3. --PHPDBG--
  4. b breakpoints_005.php:4
  5. r
  6. ev $bar
  7. c
  8. q
  9. --EXPECTF--
  10. [Successful compilation of %s]
  11. prompt> [Breakpoint #0 added at %s:4]
  12. prompt> [Breakpoint #0 at %s:4, hits: 1]
  13. >00004: var_dump($bar);
  14. 00005: }
  15. 00006:
  16. prompt> test
  17. prompt> string(4) "test"
  18. [Script ended normally]
  19. prompt>
  20. --FILE--
  21. <?php
  22. function foo($bar) {
  23. var_dump($bar);
  24. }
  25. foo("test");