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

Request #11957 Text_Captcha_Driver_Image is present
Submitted: 2007-09-01 21:12 UTC
From: adamjacobmuller Assigned: wenz
Status: Closed Package: Text_CAPTCHA (version 0.3.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2007-09-01 21:12 UTC] adamjacobmuller (Adam Jacob Muller)
Description: ------------ On approximately line 206 of Text/Captcha/Driver/Image.php an error is raised "Error creating CAPTCHA image (font missing? !)" As the ?! indicates, we aren't actually checking what's gone wrong, and just blindly intimating a font issue. Since we are handling a PEAR::Error object from Image_Text it's trivial to call getMessage() and report the real error. The code below (in test script) fixes this and reports the error that actually occured. No patch, this is to trivial to require a patch file. Test script: --------------- if (PEAR::isError(($e=$this->_imt->init()))) { $this->_error = PEAR::raiseError(sprintf('Error initializing Image_Text (%s)',$e->getMessage())); return $this->_error; } else { $this->_created = true; } Expected result: ---------------- useful error Actual result: -------------- useless error

Comments

 [2007-09-02 09:15 UTC] wenz (Christian 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/Text_CAPTCHA thanks for your trivial report ;)