1--TEST--
2Observer: Ensure opline exists on the execute_data
3--EXTENSIONS--
4zend_test
5--INI--
6zend_test.observer.enabled=1
7zend_test.observer.show_output=1
8zend_test.observer.observe_all=1
9zend_test.observer.show_opcode=1
10opcache.jit=0
11--FILE--
12<?php
13function foo()
14{
15    echo 'Foo' . PHP_EOL;
16}
17
18foo();
19include __DIR__ . '/observer.inc';
20echo array_sum([1,2,3]) . PHP_EOL;
21foo();
22?>
23--EXPECTF--
24<!-- init '%s' -->
25<!-- opcode: 'ZEND_INIT_FCALL' -->
26<file '%s'>
27  <!-- opcode: 'ZEND_INIT_FCALL' -->
28  <!-- init foo() -->
29  <!-- opcode: 'ZEND_ECHO' -->
30  <foo>
31    <!-- opcode: 'ZEND_ECHO' -->
32Foo
33    <!-- opcode: 'ZEND_RETURN' -->
34  </foo>
35  <!-- init '%s' -->
36  <!-- opcode: 'ZEND_INIT_FCALL' -->
37  <file '%s'>
38    <!-- opcode: 'ZEND_INIT_FCALL' -->
39    <!-- init foo_observer_test() -->
40    <!-- opcode: 'ZEND_ECHO' -->
41    <foo_observer_test>
42      <!-- opcode: 'ZEND_ECHO' -->
43foo_observer_test
44      <!-- opcode: 'ZEND_RETURN' -->
45    </foo_observer_test>
46    <!-- opcode: 'ZEND_RETURN' -->
47  </file '%s'>
48  <!-- init array_sum() -->
49  <array_sum>
50  </array_sum>
516
52  <foo>
53    <!-- opcode: 'ZEND_ECHO' -->
54Foo
55    <!-- opcode: 'ZEND_RETURN' -->
56  </foo>
57  <!-- opcode: 'ZEND_RETURN' -->
58</file '%s'>
59