php-src/Zend/tests/constants_008.phpt
2008-08-25 19:35:10 +00:00

18 lines
207 B
PHP

--TEST--
Defining constant twice with two different forms
--FILE--
<?php
define('a', 2);
const a = 1;
if (defined('a')) {
print a;
}
?>
--EXPECTF--
Notice: Constant a already defined in %s on line %d
2