<?php
class A
{
public static $b;
}
class B
{
public function __get($name)
{
$this->__set($name, new C);
return $this->$name;
}
public function __set($name, $value)
{
$this->$name = $value;
}
}
class C
{
public function test()
{
return new D;
}
}
class D
{
public $d;
}
A::$b = new B;
A::$b->c->test()->d = 'waa';
A::$b->c->test()->d = 'waa';
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/LoXRg 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/LoXRg 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/LoXRg on line 5
Process exited with code 255.