mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
16 lines
292 B
PHP
16 lines
292 B
PHP
--TEST--
|
|
Class declaration colliding with import (in namespace)
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace Foo {
|
|
const BAR = 42;
|
|
}
|
|
|
|
namespace Bazzle {
|
|
use const Foo\BAR;
|
|
const BAR = 24;
|
|
}
|
|
--EXPECTF--
|
|
Fatal error: Cannot declare const Bazzle\BAR because the name is already in use in %s on line %d
|