php-src/tests/lang/029.phpt

27 lines
332 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();
echo ($x==$y) ? 'success':'failure'; ?>
--EXPECT--
success