ZF-5070: Zend_Validate_Date wrong result with float => return TRUE
Description
The Date validator return TRUE with some float values:
$validator = new Zend_Validate_Date('YYYY-MM-DD');
$result = $validator->isValid($value);
if (!$result) {
$this->_error(self::NOT_VALID_DATE);
return $result;
}
return $result;
...->isValid(-1.10) return TRUE ...->isValid(-3.0005) return TRUE
Comments
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-11-26T05:29:09.000+0000
I think it is a issue how to check type of parameters. It is similar to ZF-4352
Posted by Thomas Weidner (thomas) on 2008-11-26T05:31:37.000+0000
@Satoru:
I don't know how you come to the idea that this issue is related to ZF-4352. Wether Alpha nor Alnum filters are used by this filter. And the value is also not casted.
There is no relationship between this two issues.
Posted by Thomas Weidner (thomas) on 2008-11-27T11:56:35.000+0000
Fixed with r12910