watch_004.phpt 652 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --TEST--
  2. Test detection of inline string manipulations on zval watch
  3. --INI--
  4. opcache.optimization_level=0
  5. --PHPDBG--
  6. b 3
  7. r
  8. w $a
  9. c
  10. q
  11. --EXPECTF--
  12. [Successful compilation of %s]
  13. prompt> [Breakpoint #0 added at %s:3]
  14. prompt> [Breakpoint #0 at %s:3, hits: 1]
  15. >00003: $b = "a";
  16. 00004: $a = $b.$b;
  17. 00005: $a[1] = "b";
  18. prompt> [Added watchpoint #0 for $a]
  19. prompt> [Breaking on watchpoint $a]
  20. Old value:
  21. New value: aa
  22. >00005: $a[1] = "b";
  23. 00006:
  24. prompt> [Breaking on watchpoint $a]
  25. Old value: aa
  26. New value: ab
  27. >00006:
  28. prompt> [$a has been removed, removing watchpoint]
  29. [Script ended normally]
  30. prompt>
  31. --FILE--
  32. <?php
  33. $b = "a";
  34. $a = $b.$b;
  35. $a[1] = "b";