1--TEST--
2ZE2 Destructing and references
3--FILE--
4<?php
5
6class test1 {public $x;};
7class test2 {public $x;};
8class test3 {public $x;};
9class test4 {public $x;};
10
11$o1 = new test1;
12$o2 = new test2;
13$o3 = new test3;
14$o4 = new test4;
15
16$o3->x = &$o4;
17
18$r1 = &$o1;
19
20class once {}
21
22$o = new once;
23echo "Done\n";
24?>
25--EXPECT--
26Done
27