mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
20 lines
304 B
Plaintext
20 lines
304 B
Plaintext
|
--TEST--
|
||
|
Trying declare interface with repeated name of inherited method
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
interface a {
|
||
|
function b();
|
||
|
}
|
||
|
|
||
|
interface b {
|
||
|
function b();
|
||
|
}
|
||
|
|
||
|
interface c extends a, b {
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Can't inherit abstract function b::b() (previously declared abstract in a) in %s on line %d
|