xref: /PHP-7.4/Zend/tests/name_collision_08.phpt (revision 9af0c96a)
1--TEST--
2Function declaration colliding with import (in namespace)
3--FILE--
4<?php
5
6namespace Foo {
7    function bar() {}
8}
9
10namespace Bazzle {
11    use function Foo\bar;
12    function bar() {}
13}
14--EXPECTF--
15Fatal error: Cannot declare function Bazzle\bar because the name is already in use in %s on line %d
16