mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +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
|