blob: 6db4be5d994b139b978fb426126d7c5adb995a1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--TEST--
non-existent imported constants should not be looked up in the global table
--FILE--
<?php
require 'includes/global_baz.php';
use const foo\bar\baz;
var_dump(baz);
?>
--EXPECTF--
Fatal error: Uncaught EngineException: Undefined constant 'foo\bar\baz' in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|