Eliminate ArrayData::plusEq
[hiphop-php.git] / hphp / test / slow / array / internal-cursor-bug.php
blob66fda6aa78dfa3a324b4e77c713070efb94d0012
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));
12 <<__EntryPoint>>
13 function main_internal_cursor_bug() {
14 f();