1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/constants/constants_008.phpt

18 lines
243 B
PHP

--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, this will be an error in PHP 9 in %s on line %d
2