ZF-6723: Zend_Locale_Format::getNumber() doesn't parse thousands separators properly

Issue Type: Bug Created: 2009-05-19T03:30:13.000+0000 Last Updated: 2009-06-04T13:24:29.000+0000 Status: Resolved Fix version(s): - 1.9.0 (31/Jul/09)

Reporter: Piotr Czachur (zimnyx) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:


Zend_Locale_Format::getNumber('2,2,3', array('locale' => 'en_EN')) == 233 Zend_Locale_Format::isFloat('2,2,3', array('locale' => 'en_EN')) === true

Looks like thousands separator can occur in every place in number, is it done intentionally?


Posted by Thomas Weidner (thomas) on 2009-06-04T13:24:28.000+0000

Fixed with r15890.

Note: Number parsing should generic be done with lentacy. (described in CLDR). Originally the check was very loosly. We hardend is.

With this changeset it's now no longer possible to use wrong placed grouping chars like above, not allowed characters (like whitespaces or not allowed alphabetic chars) and much more.

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.