mirror of
https://github.com/php/php-src.git
synced 2024-09-28 05:16:12 +00:00
15 lines
254 B
Plaintext
15 lines
254 B
Plaintext
|
--TEST--
|
||
|
defining function with same name as imported should fail
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
namespace {
|
||
|
use function foo\bar;
|
||
|
|
||
|
function bar() {}
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Cannot declare function bar because the name is already in use in %s on line %d
|