mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
7aacc705d0
Closes GH-5958
17 lines
308 B
PHP
17 lines
308 B
PHP
--TEST--
|
|
Function declaration colliding with import (in namespace)
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace Foo {
|
|
function bar() {}
|
|
}
|
|
|
|
namespace Bazzle {
|
|
use function Foo\bar;
|
|
function bar() {}
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot declare function Bazzle\bar because the name is already in use in %s on line %d
|