mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
21 lines
325 B
PHP
21 lines
325 B
PHP
--TEST--
|
|
errmsg: cannot inherit previously inherited constant
|
|
--FILE--
|
|
<?php
|
|
|
|
interface test1 {
|
|
const FOO = 10;
|
|
}
|
|
|
|
interface test2 {
|
|
const FOO = 10;
|
|
}
|
|
|
|
class test implements test1, test2 {
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot inherit previously-inherited constant FOO from interface test2 in %s on line %d
|