dis-bench / src /php /php-src /Zend /tests /constants /constants_004.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
192 Bytes
--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