blob: 652fa3dbf15ed8ddf08850938a56b874b52ff865 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--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
|