|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76367 NoRewindIterator segfault 11
Submitted: 2018-05-22 17:21 UTC Modified: 2018-05-22 21:10 UTC
From: pyscht at gmail dot com Assigned:
Status: Closed Package: SPL related
PHP Version: 7.2.5 OS: linux/macOS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pyscht at gmail dot com
New email:
PHP Version: OS:


 [2018-05-22 17:21 UTC] pyscht at gmail dot com
Segmentation fault when trying to get the current from an invalid iterator

Test script:
$arr = [1,3,55,66,43,6];

$iter = new NoRewindIterator(new ArrayIterator($arr));

while($iter->valid()) {

var_dump($iter->current()); //Segmentation fault: 11 here!

Actual result:
Segmentation fault: 11


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-22 21:10 UTC]
-Package: *Programming Data Structures +Package: SPL related
 [2018-05-23 06:46 UTC]
Automatic comment on behalf of
Log: Fixed bug #76367 (NoRewindIterator segfault 11)
 [2018-05-23 06:46 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 17:01:24 2020 UTC