mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
18 lines
207 B
PHP
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
|