ZF-4303: Zend_Validate_Int takes booleans for valid integers
Description
The Zend_Validate_Int validator does not correctly handle boolean input values:
$value = true; // Not a number at all!
$validator = new Zend_Validate_Int();
$result = $validator->isValid($value);
The $result variable has been "(bool)true" after the call to isValid(). With setting $value to "false", $result changed to "false" too.
Comments
Posted by Thomas Weidner (thomas) on 2008-11-06T11:12:22.000+0000
Fixed with r12336
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:30.000+0000
Changing issues in preparation for the 1.7.0 release.