<?php
class A
{
public function f1()
{
return $this->f2();
}
public function f2()
{
return "hello";
}
}
class B extends A
{
public function f2()
{
return "bye";
}
}
$b = new B;
echo $b->f1(); // bye
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/3SGEf on line 24
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/3SGEf on line 5
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/3SGEf on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/3SGEf on line 5
Process exited with code 255.