mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
15 lines
246 B
PHP
15 lines
246 B
PHP
--TEST--
|
|
using const with same name as defined should fail
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace {
|
|
const bar = 42;
|
|
|
|
use const foo\bar;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use const foo\bar as bar because the name is already in use in %s on line %d
|