repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix memoization of functions called with keyset arguments
[hiphop-php.git]
/
hphp
/
test
/
quick
/
global_dequeue_pop.php
blob
42efdc611d6396a2a63f716d15c574d90beb9b09
1
<
?php
2
3
function
foo
() {
4
$a
=
$GLOBALS
;
5
$x
=
count
(
$a
);
6
array_pop
(
$a
);
7
$y
=
count
(
$a
);
8
var_dump
(
$x
-
$y
);
9
}
10
11
function
bar
() {
12
$b
=
$GLOBALS
;
13
$x
=
count
(
$b
);
14
array_shift
(
$b
);
15
$y
=
count
(
$b
);
16
var_dump
(
$x
-
$y
);
17
}
18
19
foo
();
20
21
bar
();