ZF-12256: Zend_Locale_Format::isNumber regexes are failing for en_IN locale and numbers with one digit

Issue Type: Bug Created: 2012-05-28T10:50:32.000+0000 Last Updated: 2012-05-28T10:50:32.000+0000 Status: Open Fix version(s): Reporter: Jose Sa (jsa) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:


Validation on numbers between -9 and 9 (with one digit) fails the isNumber check if the locale is set to 'en_IN'.

    $locale = new Zend_Locale('en_IN');
$number = 1;
$isnumber = var_export(Zend_Locale_Format::isNumber($number, array('locale' => $locale)),true); // returns false value with $number = 1


No comments to display

Have you found an issue?

See the Overview section for more details.


© 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.