mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
edf22962ef
We missed the change to make this an Error exception in PHP 8, but at least elevate it to a warning, to avoid a notice -> exception jump at a later time.
14 lines
192 B
PHP
14 lines
192 B
PHP
--TEST--
|
|
Trying to redeclare constant inside namespace
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace foo;
|
|
|
|
const foo = 1;
|
|
const foo = 2;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Constant foo\foo already defined in %s on line %d
|