mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
18 lines
243 B
PHP
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
|