<?php
class a {
public static function ii(){
var_dump(self::aa());
}
public function aa(){}
}
class b extends a {
public function aa(){
$a = new a();
$a->ii();
}
}
$bb = new b();
$bb->aa();
Fatal error: Uncaught Error: Non-static method a::aa() cannot be called statically in /in/ulG33:4
Stack trace:
#0 /in/ulG33(11): a::ii()
#1 /in/ulG33(16): b->aa()
#2 {main}
thrown in /in/ulG33 on line 4
Process exited with code 255.
Strict Standards: Non-static method a::aa() should not be called statically in /in/ulG33 on line 4
NULL
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/ulG33 on line 3
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/ulG33 on line 3
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/ulG33 on line 3
Process exited with code 255.