mirror of
https://github.com/php/php-src.git
synced 2024-09-24 19:37:26 +00:00
19 lines
286 B
PHP
19 lines
286 B
PHP
--TEST--
|
|
non-existent imported functions should not be looked up in the global table
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace {
|
|
function test() {
|
|
echo "NO!";
|
|
}
|
|
}
|
|
namespace foo {
|
|
use function bar\test;
|
|
test();
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Call to undefined function bar\test() in %s on line %d
|