ZF-8906: Create Zend_Validate_Equal or Add Strict Option to Zend_Validate_Identical

Issue Type: Improvement Created: 2010-01-22T16:19:38.000+0000 Last Updated: 2010-05-02T07:36:20.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Isaac F (isac1984) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


I've gotten messages like these from Zend_Validate_Identical a few times:

The token '0000002031' does not match the given token '2031'
The token '2031' does not match the given token '2031'

Adding an Int filter to the element solves the problem, but it seems like having an option to not do a strict comparison could be useful. I know this would make a mockery of the "Identical" part of the name, but I thought I'd put it out there.


Posted by Thomas Weidner (thomas) on 2010-01-23T03:18:29.000+0000

But "000002031" is not the same as "2031".

It would not work even it I use non-strict comparison as the input is given as string. You would need to filter it to a number in any case.

Posted by Thomas Weidner (thomas) on 2010-05-02T07:36:19.000+0000

Non-strict validation integrated with r22077

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.