1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/opcache/tests/wrong_inlining_004.phpt
2020-01-19 18:28:43 +01:00

24 lines
344 B
PHP

--TEST--
Inlining through call_user_func()
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function get_const() {
return 42;
}
function test() {
$x = new stdClass;
var_dump(call_user_func('get_const', $x));
}
test();
?>
--EXPECT--
int(42)