#44511 [Asn->Csd]: missing exception check in spl_filesystem_dir_open

From: Date: Wed, 09 Apr 2008 19:01:48 +0000
Subject: #44511 [Asn->Csd]: missing exception check in spl_filesystem_dir_open
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124123@lists.php.net to get a copy of this message
ID: 44511 Updated by: colder@php.net Reported By: cellog@php.net -Status: Assigned +Status: Closed Bug Type: SPL related PHP Version: 5.3CVS-2008-03-23 (CVS) Assigned To: colder New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2008-03-23 23:31:36] colder@php.net Could you pleas provide a reproduce case so I can build a test from it? ------------------------------------------------------------------------ [2008-03-23 06:51:39] 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(). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44511&edit=1

« previous php.bugs (#124123) next »