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

Scheduling for RC3.

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.

Updating for the 1.6.0 release.