Issues

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

Fixed with r12336

Changing issues in preparation for the 1.7.0 release.