clean_001.phpt 895 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --TEST--
  2. Cleaning must preserve breakpoints
  3. --INI--
  4. opcache.enable_cli=0
  5. --PHPDBG--
  6. b 4
  7. b foo
  8. r
  9. c
  10. clean
  11. y
  12. c
  13. r
  14. c
  15. q
  16. --EXPECTF--
  17. [Successful compilation of %s]
  18. prompt> [Breakpoint #0 added at %s:4]
  19. prompt> [Breakpoint #1 added at foo]
  20. prompt> 1
  21. [Breakpoint #0 at %s:4, hits: 1]
  22. >00004: echo 2;
  23. 00005: echo 3;
  24. 00006: foo();
  25. prompt> 23
  26. [Breakpoint #1 in foo() at %s:9, hits: 1]
  27. >00009: echo 4;
  28. 00010: }
  29. 00011:
  30. prompt> Do you really want to clean your current environment? (type y or n): Cleaning Execution Environment
  31. Classes %d
  32. Functions %d
  33. Constants %d
  34. Includes 0
  35. prompt> [Not running]
  36. prompt> 1
  37. [Breakpoint #0 at %s:4, hits: 1]
  38. >00004: echo 2;
  39. 00005: echo 3;
  40. 00006: foo();
  41. prompt> 23
  42. [Breakpoint #1 in foo() at %s:9, hits: 1]
  43. >00009: echo 4;
  44. 00010: }
  45. 00011:
  46. prompt> 4
  47. [Script ended normally]
  48. prompt>
  49. --FILE--
  50. <?php
  51. echo 1;
  52. echo 2;
  53. echo 3;
  54. foo();
  55. function foo() {
  56. echo 4;
  57. }