Issues

ZF-7703: Int validator assumes 'en' Locale integers are valid, despite specifying a different locale

Issue Type: Improvement Created: 2009-08-27T12:05:31.000+0000 Last Updated: 2009-09-13T10:40:26.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Luke Barton (lbarton) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments: - Int.php-greedy-locale.patch

Description

If you specify a locale, the isValid() method validates the value with Zend_Locale_Format::isInteger() using the specified locale. However, In addition to the specified locale, it also validates with an 'en'-based Zend_Locale.

Should the validator assume that in all cases an 'en'-localized value is required, even though the user has explicitly defined which locale they wish to validate with?

Comments

Posted by Luke Barton (lbarton) on 2009-08-27T12:06:15.000+0000

Patch amending functionality.

Posted by Thomas Weidner (thomas) on 2009-09-13T10:40:26.000+0000

Added with r18097

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts