ZF-7475: Error with matching types of values

Issue Type: Bug Created: 2009-08-04T07:11:32.000+0000 Last Updated: 2009-08-08T10:55:59.000+0000 Status: Resolved Fix version(s): - 1.9.1 (11/Aug/09)

Reporter: Alexandr Kovalenko (sander) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


Class Zend_Validate_Alnum File: Zend/Validate/Alnum.php Line: 130

wrong: if ($value !== self::$_filter->filter($value)) right: if ($value != self::$_filter->filter($value))

self::$_filter->filter($value) always return type string and $value may be as string as integer

if (1 !== '1') we have error


Posted by Thomas Weidner (thomas) on 2009-08-08T10:55:58.000+0000

Fixed with r17466

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.