Fix memoization of functions called with keyset arguments
[hiphop-php.git] / hphp / test / quick / global_dequeue_pop.php
blob42efdc611d6396a2a63f716d15c574d90beb9b09
1 <?php
3 function foo() {
4 $a = $GLOBALS;
5 $x = count($a);
6 array_pop($a);
7 $y = count($a);
8 var_dump($x - $y);
11 function bar() {
12 $b = $GLOBALS;
13 $x = count($b);
14 array_shift($b);
15 $y = count($b);
16 var_dump($x - $y);
19 foo();
21 bar();