1--TEST--
2GH-10168: Assign prop
3--FILE--
4<?php
5
6class Box {
7    public $value;
8}
9
10class Test {
11    function __destruct() {
12        global $box;
13        $box->value = null;
14    }
15}
16
17function test($box) {
18    var_dump($box->value = new Test);
19}
20
21$box = new Box();
22$box->value = new Test;
23test($box);
24// Second call tests the cache slot path
25test($box);
26
27?>
28--EXPECT--
29object(Test)#3 (0) {
30}
31object(Test)#3 (0) {
32}
33