ZF-6019: testCaptchaImageCleanup(Zend_Captcha_ImageTest) test failure

Issue Type: Unit Tests: Problem Created: 2009-03-13T05:09:29.000+0000 Last Updated: 2009-12-21T00:56:03.000+0000 Status: Resolved Fix version(s): - 1.7.7 (16/Mar/09)

Reporter: Alexander Veremyev (alexander) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Captcha

Related issues: Attachments:


{panel} 1) testCaptchaImageCleanup(Zend_Captcha_ImageTest) File /tmp/ZF_test_images/0d62d1387f038b41435689678c94a062.png was found even after GC Failed asserting that is false. {panel}


Posted by Alexander Veremyev (alexander) on 2009-03-13T05:38:21.000+0000

Garbage collection process is started randomly depending on GcFreq option.

<pre class="highlight">
mt_rand(0, $this->getGcFreq()) == 1

Above expression is used to check if garbage collection process have to be started. So gcFreq == 1 ($captcha->setGcFreq(1)) means "once per two executions".

mt_rand(1, $this->getGcFreq()) is more accurate (and it looks like a bug but not a unit tests problem).

Posted by Fabien MARTY (fab) on 2009-03-28T10:32:34.000+0000

is it really a Zend_Cache issue ?

Posted by Fabien MARTY (fab) on 2009-04-09T00:15:36.000+0000

I change the component (it seems to be a Zend_Captcha problem, not a Zend_Cache one)

Posted by Menno Luiten (mluiten) on 2009-12-20T03:49:54.000+0000

Does this still occur? There is a fix posted in r14290 (1.7 release branch) some time ago, but it seems the poster did not close the issue yet.

Posted by Menno Luiten (mluiten) on 2009-12-21T00:56:01.000+0000

Resolving, since I can not reproduce this and it seems to be fixed since r14290 / 1.7.7.

Have you found an issue?

See the Overview section for more details.


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

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