summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/wrong_inlining_003.phpt
blob: a7e4a11b76be5b999a2457610d3b3c7273b786bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
foo($bar) with undefined $bar
--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() {
    var_dump(get_const($undef));
}

test();
?>
--EXPECTF--
Notice: Undefined variable: undef in %swrong_inlining_003.php on line 7
int(42)