mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
15 lines
243 B
PHP
15 lines
243 B
PHP
--TEST--
|
|
defining const with same name as imported should fail
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace {
|
|
use const foo\bar;
|
|
|
|
const bar = 42;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot declare const bar because the name is already in use in %s on line %d
|