1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

20 lines
355 B
PHP

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