1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 01:18:19 +02:00
Files
archived-php-src/Zend/tests/name_collision_09.phpt
T
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

17 lines
295 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