summaryrefslogtreecommitdiff
path: root/Zend/tests/constants_008.phpt
blob: 226e147ffdba576ba5f85fe905141ece05664cc3 (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--
Notice: Constant a already defined in %s on line %d
2