1--TEST-- 2Bug #7515 (weird & invisible referencing of objects) 3--FILE-- 4<?php 5class obj { 6 function method() {} 7} 8 9$o = new stdClass; 10$o->root = new obj(); 11 12ob_start(); 13var_dump($o); 14$x=ob_get_contents(); 15ob_end_clean(); 16 17$o->root->method(); 18 19ob_start(); 20var_dump($o); 21$y=ob_get_contents(); 22ob_end_clean(); 23if ($x == $y) { 24 print "success"; 25} else { 26 print "failure 27x=$x 28y=$y 29"; 30} 31?> 32--EXPECT-- 33success 34