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_iter_warning.php
blob
af8f3e43818ddcea79cad7c1d6654a54a5aef85f
1
<
?hh
2
3
function
main
() {
4
$arr
=
null
;
5
print
"start iter loop
\n
"
;
6
foreach
(
$arr
as
$x
=>
$y
) {
7
print
"fail"
;
8
}
9
print
"end iter loop
\n
"
;
10
$ref
= &
$arr
;
11
print
"start witer loop
\n
"
;
12
foreach
(
$arr
as
$x
=>
$y
) {
13
print
"fail"
;
14
}
15
print
"end witer loop
\n
"
;
16
}
17
18
main
();
19