mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
14 lines
257 B
Plaintext
14 lines
257 B
Plaintext
|
--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
|