1: --TEST--
2: Bug #7515 (weird & invisible referencing of objects)
3: --SKIPIF--
4: <?php if(version_compare(zend_version(), "2.0.0-dev", '<')) echo "skip Zend Engine 2 needed\n"; ?>
5: --INI--
6: error_reporting=2039
7: --FILE--
8: <?php
9: class obj {
10: function method() {}
11: }
12:
13: $o->root=new obj();
14:
15: ob_start();
16: var_dump($o);
17: $x=ob_get_contents();
18: ob_end_clean();
19:
20: $o->root->method();
21:
22: ob_start();
23: var_dump($o);
24: $y=ob_get_contents();
25: ob_end_clean();
26: if ($x == $y) {
27: print "success";
28: } else {
29: print "failure
30: x=$x
31: y=$y
32: ";
33: }
34: ?>
35: --EXPECT--
36: success
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>