Remove support for variable variables from parser, typechecker and frontend
[hiphop-php.git] / hphp / test / zend / good / tests / lang / bug7515.php
blob4aa6bd037b0a5c38abb537e8d4d88209a6d0c14d
1 <?php
2 class obj {
3 function method() {}
6 $o->root=new obj();
8 ob_start();
9 var_dump($o);
10 $x=ob_get_contents();
11 ob_end_clean();
13 $o->root->method();
15 ob_start();
16 var_dump($o);
17 $y=ob_get_contents();
18 ob_end_clean();
19 if ($x == $y) {
20 print "success";
21 } else {
22 print "failure
23 x=$x
24 y=$y