From: Andre Langhorst Date: Wed, 6 Dec 2000 16:22:01 +0000 (+0000) Subject: added OO test (will fail currently) X-Git-Tag: php-4.0.5RC1~996 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41f8d621b657c69b483be43c1da4b4caf80421cb;p=php added OO test (will fail currently) --- diff --git a/tests/lang/029.phpt b/tests/lang/029.phpt new file mode 100644 index 0000000000..6226d42880 --- /dev/null +++ b/tests/lang/029.phpt @@ -0,0 +1,30 @@ +--TEST-- +OO Bug Test (Bug #7515) +--POST-- +--GET-- +--FILE-- +root->set_in_copied_o=TRUE; + var_dump($o_copy);?>
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