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
global statement removal: hphp/test [7/x]
[hiphop-php.git]
/
hphp
/
test
/
quick
/
bad_setm_nopt.php
blob
bd7d06459243c33ad4a7e1377e3d0f05e2e6fed8
1
<
?hh
2
3
function
test
(
$a
,
$b
,
$c
,
$d
,
$e
) {
4
$k
=
array
();
5
foreach
(
$a
as
$id
) {
6
$k
[
$id
] =
foo
(
$id
,
$b
,
$c
,
$d
,
$e
);
7
$k
[
$id
] =
foo
(
$k
[
$id
],
$b
);
8
}
9
}
10
11
function
foo
(
$a
,
$b
) {
12
return
$a
?
:
$b
;
13
}
14
15
function
main
() {
16
test
(
array
(
array
(
'foo'
),
array
(
'bar'
),
array
(
'baz'
)),
null
,
1
,
2
,
3
);
17
}
18
19
main
();