-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
Description
Try this script:
$kill); } function __get($var) { return $this->values[$var]; } function __set($var, $value) { $this->values[$var] = $value; } function subrender() { echo 'sub: '.$this->foo."\r\n"; } } class b extends a { ``` public $foo; function __construct() { parent::__construct('foo'); } function render() { echo 'render: '.$this->foo."\r\n"; } ``` } $test = new b(); $test->foo = 'lol'; $test->render(); $test->subrender(); ?>Expected result:
render: lol
sub:lol
hhvm - Without Jit
render: lol
sub: lol
hhvm - With Jit:
render:
sub: lol
The property foo remains like in cache in the object, it is not correctly accessible using $this ($this->foo doesn't call parent::__get)