sync the repo
[hiphop-php.git] / hphp / test / zend / good / tests / lang / bug7515.php
blob50191daa35b50575954337333a16a93488116a2d
1 <?hh
2 class obj {
3 function method() :mixed{}
5 <<__EntryPoint>>
6 function main() :mixed{
7 $o = new stdClass();
8 $o->root=new obj();
10 ob_start();
11 var_dump($o);
12 $x=ob_get_contents();
13 ob_end_clean();
15 $o->root->method();
17 ob_start();
18 var_dump($o);
19 $y=ob_get_contents();
20 ob_end_clean();
21 if ($x == $y) {
22 print "success";
23 } else {
24 print "failure
25 x=$x
26 y=$y