2000-12-06 16:22:01 +00:00
|
|
|
--TEST--
|
2003-01-23 19:31:02 +00:00
|
|
|
Bug #7515 (weird & invisible referencing of objects)
|
2002-10-06 19:39:12 +00:00
|
|
|
--SKIPIF--
|
2002-10-29 13:30:22 +00:00
|
|
|
<?php if(version_compare(zend_version(), "2.0.0-dev", '<')) echo "skip Zend Engine 2 needed\n"; ?>
|
|
|
|
--INI--
|
|
|
|
error_reporting=2039
|
2000-12-06 16:22:01 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
class obj {
|
|
|
|
function method() {}
|
2002-03-29 17:12:11 +00:00
|
|
|
}
|
2000-12-06 16:22:01 +00:00
|
|
|
|
|
|
|
$o->root=new obj();
|
|
|
|
|
|
|
|
ob_start();
|
|
|
|
var_dump($o);
|
|
|
|
$x=ob_get_contents();
|
|
|
|
ob_end_clean();
|
|
|
|
|
|
|
|
$o->root->method();
|
|
|
|
|
|
|
|
ob_start();
|
|
|
|
var_dump($o);
|
|
|
|
$y=ob_get_contents();
|
|
|
|
ob_end_clean();
|
2002-05-16 21:56:44 +00:00
|
|
|
if ($x == $y) {
|
|
|
|
print "success";
|
|
|
|
} else {
|
|
|
|
print "failure
|
|
|
|
x=$x
|
|
|
|
y=$y
|
|
|
|
";
|
|
|
|
}
|
|
|
|
?>
|
2000-12-06 16:22:01 +00:00
|
|
|
--EXPECT--
|
|
|
|
success
|