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