dis-bench / src /php /php-src /Zend /tests /errmsg /errmsg_025.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
331 Bytes
--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: Class test inherits both test1::FOO and test2::FOO, which is ambiguous in %s on line %d