mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
e198132542
Also fixes a resolution bug
14 lines
254 B
PHP
14 lines
254 B
PHP
--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: Undefined constant 'foo\bar\baz' in %s on line %d
|