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%eobserver_opline_%d.php' -->
25<!-- opcode: 'ZEND_INIT_FCALL' -->
26<file '%s%eobserver_opline_%d.php'>
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%eobserver.inc' -->
36  <!-- opcode: 'ZEND_INIT_FCALL' -->
37  <file '%s%eobserver.inc'>
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%eobserver.inc'>
486
49  <foo>
50    <!-- opcode: 'ZEND_ECHO' -->
51Foo
52    <!-- opcode: 'ZEND_RETURN' -->
53  </foo>
54  <!-- opcode: 'ZEND_RETURN' -->
55</file '%s%eobserver_opline_%d.php'>
56