php-src/tests/lang/029.phpt

37 lines
497 B
Plaintext
Raw Normal View History

2000-12-06 16:22:01 +00:00
--TEST--
OO Bug Test (Bug #7515)
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() {}
}
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