php-src/Zend/tests/constants_004.phpt

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