ZF-3969: Zend_Captcha_Figlet warning
Description
$captcha = new Zend_Captcha_Figlet(array(
'name' => 'foo',
'wordLen' => 14,
));
$id = $captcha->generate();
If the wordLen is 14+ it sends out a warning
Warning: array_rand() [function.array-rand]: Second argument has to be between 1 and the number of elements in the array in Zend\Captcha\Word.php on line 280
P.S.: Please, add Zend_Captcha to Components here in bug tracker.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-08-22T14:59:49.000+0000
Scheduling for RC3.
Posted by Matthew Weier O'Phinney (matthew) on 2008-08-23T21:27:59.000+0000
fixed in trunk and 1.6 release branch. Issue was actually for all Word-based captchas; if the word length exceeded either the vowel or consonant character set length, it would appear. The algorithm was modified to prevent this occurring again.
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:11.000+0000
Updating for the 1.6.0 release.