php-src/tests/lang/029.phpt
2002-05-16 21:56:44 +00:00

35 lines
375 B
PHP

--TEST--
OO Bug Test (Bug #7515)
--POST--
--GET--
--FILE--
<?php
class obj {
function method() {}
}
$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();
if ($x == $y) {
print "success";
} else {
print "failure
x=$x
y=$y
";
}
?>
--EXPECT--
success