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