|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71495 Segfault on RecursiveIteratorIterator
Submitted: 2016-02-01 21:35 UTC Modified: 2021-07-15 13:55 UTC
Avg. Score:3.8 ± 1.5
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:1 (25.0%)
From: lucashedding at gmail dot com Assigned: nikic (profile)
Status: Closed Package: SPL related
PHP Version: 7.0.2 OS: Linux Mint 17.2
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: lucashedding at gmail dot com
New email:
PHP Version: OS:


 [2016-02-01 21:35 UTC] lucashedding at gmail dot com
When looping over RecursiveIteratorIterator, it turns into a segmentation fault.

$ php --version
PHP (cli) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    with Xdebug v2.4.0RC4, Copyright (c) 2002-2016, by Derick Rethans

Reverting to PHP 5.6 and there are no problems.

Test script:

Expected result:
Data is sucked in from google.

Actual result:
Seg fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-01 21:40 UTC] lucashedding at gmail dot com
Issue on is
 [2016-12-30 15:39 UTC]
-Package: SPL_Types +Package: SPL related
 [2021-07-15 13:55 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2021-07-15 13:55 UTC]
Based on from the Drupal issue, this issue has been fixed in later PHP 7 releases.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Aug 03 08:01:25 2021 UTC