php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68816 pointer to local outside of scope
Submitted: 2015-01-12 17:20 UTC Modified: 2015-01-12 18:07 UTC
From: bugreports at internot dot info Assigned:
Status: Closed Package: SPL related
PHP Version: master-Git-2015-01-12 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugreports at internot dot info
New email:
PHP Version: OS:

 

 [2015-01-12 17:20 UTC] bugreports at internot dot info
Description:
------------
Hi,


In /ext/spl/spl_iterators.c:

530        if (!iterator || !instanceof_function(Z_OBJCE_P(iterator), spl_ce_RecursiveIterator)) {

'iterator' is outside of scope, since it is an alias for caching_it, which is out-of-scope:

506                                iterator = &caching_it;


Thanks,


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-12 18:07 UTC] stas@php.net
-Type: Security +Type: Bug
 [2015-01-12 18:07 UTC] stas@php.net
Doesn't look like a security issue. May be a bug though.
 [2015-01-15 00:15 UTC] stas@php.net
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8d26c53f7cd1aa51ac39f26d59bfbf673b260350
Log: Fix bug #68816 - pointer to local outside of scope
 [2015-01-15 00:15 UTC] stas@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:39 UTC] davey@php.net
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8d26c53f7cd1aa51ac39f26d59bfbf673b260350
Log: Fix bug #68816 - pointer to local outside of scope
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 07:01:33 2025 UTC