summaryrefslogtreecommitdiff
path: root/tests/classes/bug29446.phpt
blob: 5e30e8e74b2fdc51f02c67b10ce806669957ac3b (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