source: src/router/php7/ext/opcache/tests/wrong_inlining_004.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 344 bytes
Line 
1--TEST--
2Inlining throgh call_user_func()
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--SKIPIF--
8<?php require_once('skipif.inc'); ?>
9--FILE--
10<?php
11function get_const() {
12    return 42;
13}
14
15function test() {
16    $x = new stdClass;
17    var_dump(call_user_func('get_const', $x));
18}
19
20test();
21?>
22--EXPECTF--
23int(42)
Note: See TracBrowser for help on using the repository browser.