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