ZF-3969: Zend_Captcha_Figlet warning

Issue Type: Bug Created: 2008-08-16T06:46:32.000+0000 Last Updated: 2008-09-02T10:39:11.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Martin Hujer (mhujer) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Text_Figlet

Related issues: Attachments:


<pre class="highlight">
$captcha = new Zend_Captcha_Figlet(array(
    'name' => 'foo',
    'wordLen' => 14,
$id = $captcha->generate();

If the wordLen is 14+ it sends out a warning

<pre class="highlight">
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.


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.