<?php
interface A extends Traversable
{
}
class B extends A implements IteratorAggregate
{
public function getIterator()
{
return ArrayIterator(array());
}
}
<br />
<b>Fatal error</b>: Class B cannot extend from interface A in <b>/in/opvhG</b> on line <b>7</b><br />
Process exited with code 255.
Output for 5.0.0 - 5.0.1
<br />
<b>Fatal error</b>: Class B must implement interface Traversable as part of either Iterator or IteratorAggregate in <b>Unknown</b> on line <b>0</b><br />
Process exited with code 255.
Output for 4.4.2 - 4.4.9
<br />
<b>Parse error</b>: syntax error, unexpected T_STRING in <b>/in/opvhG</b> on line <b>3</b><br />
Process exited with code 255.