mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
55 lines
1.2 KiB
PHP
55 lines
1.2 KiB
PHP
--TEST--
|
|
Observer: Ensure opline exists on the execute_data
|
|
--EXTENSIONS--
|
|
zend_test
|
|
--INI--
|
|
zend_test.observer.enabled=1
|
|
zend_test.observer.observe_all=1
|
|
zend_test.observer.show_opcode=1
|
|
opcache.jit=0
|
|
--FILE--
|
|
<?php
|
|
function foo()
|
|
{
|
|
echo 'Foo' . PHP_EOL;
|
|
}
|
|
|
|
foo();
|
|
include __DIR__ . '/observer.inc';
|
|
echo array_sum([1,2,3]) . PHP_EOL;
|
|
foo();
|
|
?>
|
|
--EXPECTF--
|
|
<!-- init '%s%eobserver_opline_%d.php' -->
|
|
<!-- opcode: 'ZEND_INIT_FCALL' -->
|
|
<file '%s%eobserver_opline_%d.php'>
|
|
<!-- opcode: 'ZEND_INIT_FCALL' -->
|
|
<!-- init foo() -->
|
|
<!-- opcode: 'ZEND_ECHO' -->
|
|
<foo>
|
|
<!-- opcode: 'ZEND_ECHO' -->
|
|
Foo
|
|
<!-- opcode: 'ZEND_RETURN' -->
|
|
</foo>
|
|
<!-- init '%s%eobserver.inc' -->
|
|
<!-- opcode: 'ZEND_INIT_FCALL' -->
|
|
<file '%s%eobserver.inc'>
|
|
<!-- opcode: 'ZEND_INIT_FCALL' -->
|
|
<!-- init foo_observer_test() -->
|
|
<!-- opcode: 'ZEND_ECHO' -->
|
|
<foo_observer_test>
|
|
<!-- opcode: 'ZEND_ECHO' -->
|
|
foo_observer_test
|
|
<!-- opcode: 'ZEND_RETURN' -->
|
|
</foo_observer_test>
|
|
<!-- opcode: 'ZEND_RETURN' -->
|
|
</file '%s%eobserver.inc'>
|
|
6
|
|
<foo>
|
|
<!-- opcode: 'ZEND_ECHO' -->
|
|
Foo
|
|
<!-- opcode: 'ZEND_RETURN' -->
|
|
</foo>
|
|
<!-- opcode: 'ZEND_RETURN' -->
|
|
</file '%s%eobserver_opline_%d.php'>
|