|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-10-27 21:57 UTC] svn@php.net
[2009-10-27 21:57 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 16:00:01 2025 UTC |
Description: ------------ There is a typo in spl_limit_it_seek() in iterators.c. An exception is thrown with the message "Cannot seek to %ld which is behind offest %ld plus count %ld". "offest" should in fact, be "offset". iterator_032.phpt tests this functionality but the expected output is incorrect as well. Reproduce code: --------------- <?php $it = new LimitIterator(new ArrayIterator(array(1,2,3,4)), 1, 2); try { $it->seek(3); } catch(OutOfBoundsException $e) { echo $e->getMessage() . "\n"; } ?>