breakpoints_006.phpt 361 B

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