It seems that it Zend_Validate_Datejust does not work properly. For instance:
$validator = new Zend_Validate_Date(array('format' => 'yyyy'));
This is a simple validator that should only take a four-digit year, but $validator->isValid('1/2/3')returns true! Really, Zend?
Or how about this:
$otherValidator = new Zend_Validate_Date(array('format' => 'mm/dd/yyyy'));
Even with the above code, it $otherValidator->isValid('15/13/10/12/1222')also returns true!
I am using Zend Framework 1.11.9. Is it just me or is it really a terrible validation class? (UPDATE: In other words, is something wrong with my code, or is it an error that needs to be sent?)
source
share