phpdbg_oplog_001.phpt 660 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --TEST--
  2. Test phpdbg_*_oplog() functions
  3. --INI--
  4. opcache.enable_cli=0
  5. --PHPDBG--
  6. r
  7. q
  8. --EXPECTF--
  9. [Successful compilation of %s]
  10. prompt> halloarray(2) {
  11. ["%s"]=>
  12. array(5) {
  13. [13]=>
  14. int(1)
  15. [17]=>
  16. int(2)
  17. [18]=>
  18. int(2)
  19. [19]=>
  20. int(3)
  21. [21]=>
  22. int(4)
  23. }
  24. ["A::b"]=>
  25. array(3) {
  26. [4]=>
  27. int(1)
  28. [5]=>
  29. int(2)
  30. [8]=>
  31. int(2)
  32. }
  33. }
  34. [Script ended normally]
  35. prompt>
  36. --FILE--
  37. <?php
  38. class A {
  39. public function b($c = 1) {
  40. if ($c == 1) {
  41. // comment
  42. }
  43. }
  44. }
  45. phpdbg_start_oplog();
  46. echo "hallo";
  47. // fcalls
  48. $a = new A();
  49. $a->b();
  50. $a->b('ha');
  51. var_dump(phpdbg_end_oplog(["functions" => true]));