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
/
cgetm_retbase.php
blob
8feef016aa878c6efc370bdf520f1c9d66330409
1
<
?hh
2
function
f
() {
$a
=
array
();
$a
[] =
1
;
return
$a
; }
3
function
nonHphpArray
( ) {
4
apc_add
(
'foo'
,
array
(
1
,
2
,
3
));
5
return
apc_fetch
(
'foo'
);
6
}
7
function
test1
() {
8
return
f
()[
0
];
9
}
10
function
main
() {
11
var_dump
(
test1
());
12
var_dump
(
nonHphpArray
()[
0
]);
13
}
14
15
main
();