php-src/Zend/tests/name_collision_09.phpt
2016-05-04 18:43:11 +02:00

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