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
Handle this typehints
[hiphop-php.git]
/
hphp
/
test
/
quick
/
setHelperPreError.php
blob
864a59ba7c8befb6be82cee63fbf5cc9f584bf5f
1
<
?hh
2
3
print
"Test begin
\n
"
;
4
5
# BindM.
6
$v
=
array
(
0
);
7
$w
=
1
;
8
$w
[
0
] =&
$v
[
0
];
9
var_dump
(
$v
);
10
var_dump
(
$w
);
11
12
# FPassM.
13
function
f
(&
$x
) {
14
var_dump
(
$x
);
15
}
16
$x
=
1
;
17
f
(
$x
[
0
]);
18
var_dump
(
$x
);
19
20
# VGetM.
21
$y
=
1
;
22
$z
= &
$y
[
0
];
23
var_dump
(
$z
);
24
25
print
"Test end
\n
"
;