mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
14 lines
191 B
PHP
14 lines
191 B
PHP
--TEST--
|
|
Trying to redeclare constant inside namespace
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace foo;
|
|
|
|
const foo = 1;
|
|
const foo = 2;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Constant foo\foo already defined in %s on line %d
|