![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: SPL FixedArray offsetExists behaviour on a negative index 3: --CREDITS-- 4: PHPNW TestFest 2009 - Ben Longden 5: --FILE-- 6: <?php 7: $array = new SplFixedArray(5); 8: if($array->offsetExists(-10) === false) { 9: echo 'PASS'; 10: } 11: ?> 12: --EXPECT-- 13: PASS