<?php
interface I1
{
public function doSomething();
public function doSomethingElse();
}
interface I2
{
public function doSomething();
public function doSomethingOther();
}
class myClass implements I1, I2
{
function doSomething()
{
print '...';
}
function doSomethingElse()
{
print '...';
}
function doSomethingOther()
{
print '...';
}
}
$a = new myClass();
$a->doSomething();
Fatal error: Can't inherit abstract function I2::doSomething() (previously declared abstract in I1) in /in/AZI9S on line 14
Process exited with code 255.
Fatal error: Can't inherit abstract function I2::doSomething() (previously declared abstract in I1) in /in/AZI9S on line 13
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/AZI9S on line 3
Process exited with code 255.