mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
15 lines
254 B
PHP
15 lines
254 B
PHP
--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
|