Fix issue with calling a unique, non-persistent method
[hiphop-php.git] / hphp / test / slow / hhbbc / array_045.php
blob6ad9ec045718b4dcfc8fca1de76ceb2d731712d8
1 <?php
3 function foo() {
4 return mt_rand() ? array(1,2,3) : array(2,3,4);
6 function bar() {
7 $x = foo();
8 $x[123] = 2;
9 $x['asdasdasd'] = new stdclass;
10 return $x;
12 function main() {
13 $x = bar();
14 var_dump($x['asdasdasd']);
16 main();