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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 00:01:25 2020 UTC