1--TEST--
2use function statements with conflicting names
3--FILE--
4<?php
5
6namespace foo {
7    function baz() {
8        return 'foo.baz';
9    }
10}
11
12namespace bar {
13    function baz() {
14        return 'bar.baz';
15    }
16}
17
18namespace {
19    use function foo\baz, bar\baz;
20    echo "Done\n";
21}
22
23?>
24--EXPECTF--
25Fatal error: Cannot use function bar\baz as baz because the name is already in use in %s on line %d
26