Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Bug #19853 Fatal error when non-existing driver is used
Submitted: 2013-03-12 00:28 UTC
From: cweiske Assigned: wenz
Status: Closed Package: Text_CAPTCHA (version 0.4.5)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2013-03-12 00:28 UTC] cweiske (Christian Weiske)
Description: ------------ When passing a non-existing driver name to the factory() method, I get a fatal error that the class could not found. I'd rather have a PEAR_Error back telling me that, so I can check for this error in my application code. Expected result: ---------------- PEAR_Error instance returned. Actual result: -------------- Class 'Text_CAPTCHA_Driver_DoesNotExist' not found in /usr/share/php/Text/CAPTCHA.php on line 170

Comments

 [2013-03-12 00:36 UTC] cweiske (Christian Weiske)
 [2013-03-16 01:15 UTC] cweiske (Christian Weiske)
 [2013-03-16 18:57 UTC] wenz (Christian Wenz)
-Status: Open +Status: Closed -Assigned To: +Assigned To: wenz
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ thank you! I also took care of the case when the driver file does not exist.