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