php-src/Zend/tests/constants_004.phpt
2008-12-04 20:12:30 +00:00

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