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
Eliminate ArrayData::plusEq
[hiphop-php.git]
/
hphp
/
test
/
slow
/
array
/
internal-cursor-bug.php
blob
66fda6aa78dfa3a324b4e77c713070efb94d0012
1
<
?hh
2
function
f
() {
3
$arr2
=
darray
[
0
=>
'a'
];
4
$arr1
=
darray
[
0
=>
'a'
,
1
=>
'b'
];
5
unset
(
$arr1
[
0
]);
6
reset
(
inout
$arr1
);
7
reset
(
inout
$arr2
);
8
var_dump
(
current
(
$arr1
));
9
}
10
11
12
<<
__EntryPoint
>>
13
function
main_internal_cursor_bug
() {
14
f
();
15
}