Code on the local machine works good, but strange on the remote server. PHP 5.5.9 on the remote server, PHP 5.5.28 on the local machine what can be the reason of such a strange behaviour on the remote server (PHP version, server configuration, ...) ?
class A {
...
public static f1(){
...
self::$f2 = static::f2();
...
}
...
protected static function f2() {
...
var_dump(static::class); // returns B on the local machine and on the remote server
$f3 = function () {
var_dump(static::class); // returns B on the local machine and returns A on the remote server
...
$data = static::f4() ...
...
};
...
}
...
}
class B extends A{...}
...
self::$B = B::f1();