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 issue with calling a unique, non-persistent method
[hiphop-php.git]
/
hphp
/
test
/
slow
/
hhbbc
/
array_052.php
blob
081b6d3df283c066445536fd40745392a9619ea4
1
<
?php
2
3
class
A
{
public function
yo
() {
echo
"hi
\n
"
; } }
4
5
function
foo
() {
6
$x
=
array
(
array
(
new
A
));
7
for
(
$i
=
0
;
$i
<
10
;
++
$i
) {
8
$x
[][] =
new
A
;
9
}
10
return
$x
;
11
}
12
function
main
() {
13
$val
=
foo
()[
1
][
0
];
14
var_dump
(
$val
);
15
$val
->
yo
();
16
}
17
main
();