blob: 573f136ce06ff1f6d15c330c44153247eb6678f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
Bug #29446 (ZE allows multiple declarations of the same class constant)
--FILE--
<?php
class testClass {
const TEST_CONST = 'test';
const TEST_CONST = 'test1';
function testClass() {
echo self::TEST_CONST;
}
}
$test = new testClass;
?>
--EXPECTF--
Fatal error: Cannot redefine class constant testClass::TEST_CONST in %s on line 5
|