mirror of
https://github.com/php/php-src.git
synced 2024-09-25 03:47:26 +00:00
17 lines
311 B
PHP
17 lines
311 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: Uncaught Error: Undefined constant 'foo\bar\baz' in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|