php-src/tests/lang/029.phpt

35 lines
375 B
Plaintext
Raw Normal View History

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