summaryrefslogtreecommitdiff
path: root/Zend/tests/constants_008.phpt
blob: 6a8f00edec23540348e4f769b066e5f975ab0dea (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