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_045.php
blob
6ad9ec045718b4dcfc8fca1de76ceb2d731712d8
1
<
?php
2
3
function
foo
() {
4
return
mt_rand
()
?
array
(
1
,
2
,
3
) :
array
(
2
,
3
,
4
);
5
}
6
function
bar
() {
7
$x
=
foo
();
8
$x
[
123
] =
2
;
9
$x
[
'asdasdasd'
] =
new
stdclass
;
10
return
$x
;
11
}
12
function
main
() {
13
$x
=
bar
();
14
var_dump
(
$x
[
'asdasdasd'
]);
15
}
16
main
();