--TEST-- GH-10168: Assign prop ref with prop ref --FILE-- value = null; } } function test($box) { $tmp = new Test; var_dump($box->value = &$tmp); } $box = new Box(); $box->value = new Test; Test::$test = &$box->value; test($box); // Second call tests the cache slot path test($box); ?> --EXPECT-- object(Test)#3 (0) { } NULL