ZF-4303: Zend_Validate_Int takes booleans for valid integers

Issue Type: Bug Created: 2008-09-16T02:21:04.000+0000 Last Updated: 2008-11-13T14:10:30.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Ralf Clau├čnitzer (zfissuetrackerralf) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


The Zend_Validate_Int validator does not correctly handle boolean input values:

<pre class="highlight">
$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.


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.

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.