mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00: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
14 lines
267 B
PHP
14 lines
267 B
PHP
--TEST--
|
|
non-existent imported functions should not be looked up in the global table
|
|
--FILE--
|
|
<?php
|
|
|
|
require 'includes/global_baz.php';
|
|
|
|
use function foo\bar\baz;
|
|
var_dump(baz());
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Call to undefined function foo\bar\baz() in %s on line %d
|