mirror of
https://github.com/php/php-src.git
synced 2024-10-18 06:52:34 +00:00
19 lines
253 B
Plaintext
19 lines
253 B
Plaintext
|
--TEST--
|
||
|
Ensure a class may implement two interfaces which include the same constant (due to inheritance).
|
||
|
--FILE--
|
||
|
<?php
|
||
|
interface IA {
|
||
|
const FOO = 10;
|
||
|
}
|
||
|
|
||
|
interface IB extends IA {
|
||
|
}
|
||
|
|
||
|
class C implements IA, IB {
|
||
|
}
|
||
|
|
||
|
echo "Done\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Done
|