tony2001 Fri Sep 10 09:55:26 2004 EDT
Added files:
/php-src/tests/classes bug29446.phpt
Log:
add testcase for bug #29446
http://cvs.php.net/co.php/php-src/tests/classes/bug29446.phpt?r=1.1&p=1
Index: php-src/tests/classes/bug29446.phpt
+++ php-src/tests/classes/bug29446.phpt
--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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php