mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
85d4cfb00d
* Keep track of defined function and const filenames * Prohibit use function foo if function foo exists * Prohibit use const foo if const foo exists
15 lines
278 B
PHP
15 lines
278 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--
|
|
Notice: Use of undefined constant baz - assumed 'baz' in %s on line %d
|
|
string(3) "baz"
|