php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44511 missing exception check in spl_filesystem_dir_open
Submitted: 2008-03-23 06:51 UTC Modified: 2008-04-09 19:01 UTC
From: cellog@php.net Assigned: colder (profile)
Status: Closed Package: SPL related
PHP Version: 5.3CVS-2008-03-23 (CVS) OS:
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cellog@php.net
New email:
PHP Version: OS:

 

 [2008-03-23 06:51 UTC] cellog@php.net
Description:
------------
because spl_filesystem_dir_open sets error handling to EH_THROW, it should return if an exception has been thrown, but after the opendir() call right at the front, no check is made on EG(exception) and so it is possible to throw 2 exceptions, which results in nothing being printed due to zend_bailout().


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-23 23:31 UTC] colder@php.net
Could you pleas provide a reproduce case so I can build a test from it?
 [2008-04-09 19:01 UTC] colder@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC