blob: 17c6904579caf55e1fe82e931d9a7b1ee7007165 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--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
|