|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-21 11:50 UTC] johannes@php.net
[2010-10-21 18:22 UTC] marc-bennewitz at arcor dot de
[2011-11-16 14:19 UTC] felipe@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: colder
[2017-10-24 07:25 UTC] kalle@php.net
-Status: Assigned
+Status: Open
-Assigned To: colder
+Assigned To:
[2018-08-18 13:56 UTC] cmb@php.net
[2021-08-13 14:36 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2021-08-13 14:36 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Description: ------------ Seeking after an OutOfBoundException doesn't work without call of rewind. With php < 5.3 it works as expected. Test script: --------------- $it = new ArrayIterator(array('zf9396', 'foo', null)); $it->rewind(); try { $it->seek(3); } catch (OutOfBoundsException $e) { var_dump($it->key()); $it->seek(0); var_dump($it->key()); } $lit = new LimitIterator($it, 0, 10); try { $lit->seek(3); } catch (OutOfBoundsException $e) { var_dump($lit->key()); $lit->seek(0); var_dump($lit->key()); } Expected result: ---------------- NULL int(0) NULL int(0) Actual result: -------------- NULL int(0) NULL NULL