dis-bench / src /php /php-src /Zend /tests /constants /constants_008.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
211 Bytes
--TEST--
Defining constant twice with two different forms
--FILE--
<?php
define('a', 2);
const a = 1;
if (defined('a')) {
print a;
}
?>
--EXPECTF--
Warning: Constant a already defined in %s on line %d
2