PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_CAPTCHA » Bug #4158

Test Code Does not Work, and is Subtle about it

Details

Request #4158Test Code Does not Work, and is Subtle about it
Submitted2005-04-15 20:10 UTC
Fromedwardzyang at thewritingpot dot com
StatusBogus
PackageText_CAPTCHA
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-04-15 20:10 UTC] edwardzyang at thewritingpot dot com

Description:
------------
There is a slight problem with the example code that comes with this package. Someone trying to get this code to run will find that the Captcha does not generate at all, and there is no error output (it is transparently transported to PEAR's error handling) to help pinpoint the problem. The problem? Missing default font.

Therefore, I propose that you also use the OPTIONS array in the sample file and note in the code that if you don't have that font present, you will have to edit that value yourself.

Took me a while to figure out what went wrong, heh.

[2005-06-13 12:29 UTC] pear at twilight dot net

Thank you so much! I had the same problem, and your comments were exactly on target. This really ought to be better done in the documentation to prevent this problem in the future!