mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00

* Keep track of defined function and const filenames * Prohibit use function foo if function foo exists * Prohibit use const foo if const foo exists
13 lines
267 B
PHP
13 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
|