1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/tests/classes/constants_error_001.phpt

14 lines
257 B
PHP

--TEST--
Error case: duplicate class constant definition
--FILE--
<?php
class myclass
{
const myConst = "hello";
const myConst = "hello again";
}
?>
--EXPECTF--
Fatal error: Cannot redefine class constant myclass::myConst in %s on line 5