File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes / bug29446.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 4 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>