1--TEST--
2foo($bar) with undefined $bar
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11function get_const() {
12    return 42;
13}
14
15function test() {
16    var_dump(get_const($undef));
17}
18
19test();
20?>
21--EXPECTF--
22Warning: Undefined variable $undef in %s on line %d
23int(42)
24