1--TEST--
2Test phpdbg_*_oplog() functions
3--INI--
4opcache.enable_cli=0
5--PHPDBG--
6r
7q
8--EXPECTF--
9[Successful compilation of %s]
10prompt> 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(3)
30    [8]=>
31    int(2)
32  }
33}
34[Script ended normally]
35prompt>
36--FILE--
37<?php
38
39class A {
40  public function b($c = 1) {
41    if ($c == 1) {
42      // comment
43    }
44  }
45}
46
47phpdbg_start_oplog();
48
49echo "hallo";
50
51// fcalls
52
53$a = new A();
54$a->b();
55$a->b('ha');
56
57var_dump(phpdbg_end_oplog(["functions" => true]));
58