ZF-8768: Zend_Validate_GreaterThan does not accept $options in array() anymore

Issue Type: Bug Created: 2010-01-10T12:37:22.000+0000 Last Updated: 2010-01-10T22:58:03.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Tomasz Sterna (smoku) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: - ZF-7153

Attachments: - Zend_Validate_GreaterThan.patch


Zend_Form::addElement is giving it's validators options in a form of array(). But Zend_Validate_GreaterThan does not process array() given as parameter to constructor. It honors Zend_Config instance now only.


Posted by Tomasz Sterna (smoku) on 2010-01-10T12:39:19.000+0000

Here's a patch that fixes the problem.

Posted by Thomas Weidner (thomas) on 2010-01-10T14:45:23.000+0000

Please give some reproducable informations...

Which release are you refering to? How did you initialise the validator?

Posted by Thomas Weidner (thomas) on 2010-01-10T14:46:18.000+0000

Seems to duplicate ZF-7153

Posted by Tomasz Sterna (smoku) on 2010-01-10T15:48:48.000+0000

Being unable to reproduce didn't stop you from merging my fix to Zend_Validate_GreaterThan and other Validators in SVN r20182.

You have really bizarre development practices in Zend Framework making me doubt the framework credibility.

$ svn log -c20182 library/Zend/

r20182 | thomas | 2010-01-10 22:12:01 +0100 (nie) | 3 linie

[ZF-7153] Zend_Validate:

  • added missing classes

$ svn diff -c20182 library/Zend/Validate/GreaterThan.php

Index: library/Zend/Validate/GreaterThan.php

--- library/Zend/Validate/GreaterThan.php (wersja 20181) +++ library/Zend/Validate/GreaterThan.php (wersja 20182) @@ -66,6 +66,9 @@ { if ($min instanceof Zend_Config) { $min = $min->toArray(); + } + + if (is_array($min)) { if (array_key_exists('min', $min)) { $min = $min['min']; } else {

Posted by Thomas Weidner (thomas) on 2010-01-10T22:57:46.000+0000

Fixed with r20182

Note: This issue was NOT CLOSED as unreproducable. It was linked to an older issue which was not fixed.

You may also note that this revision targeted much more things which you did not mention in this issue.

I'm sorry that you have problems with me fixing issues that fast. Normally users appreciate such a fast response.

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.