mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
20 lines
330 B
PHP
20 lines
330 B
PHP
--TEST--
|
|
Using the same function name on interface with inheritance
|
|
--FILE--
|
|
<?php
|
|
|
|
interface Itest {
|
|
function a();
|
|
}
|
|
|
|
interface Itest2 {
|
|
function a();
|
|
}
|
|
|
|
interface Itest3 extends Itest, Itest2 {
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Can't inherit abstract function Itest2::a() (previously declared abstract in Itest) in %s on line %d
|