ZF-6616: Zend_Locale_Format::isNumber() returns TRUE when input is empty

Issue Type: Bug Created: 2009-05-12T01:10:48.000+0000 Last Updated: 2009-05-12T03:01:48.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Eugenio Bonifacio (eugeniobonifacio) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:


According to documentation "isNumber($value, array $options = array()) checks if a given string is a number and returns true or false. ". I tested it with an empty value and it returns a TRUE value. But empty string isn't a localized number.


Posted by Thomas Weidner (thomas) on 2009-05-12T01:59:28.000+0000

I can not reproduce this with the actual release.

Can you give some more details ?


<pre class="highlight">

returns me false which is expected behaviour.

Posted by Eugenio Bonifacio (eugeniobonifacio) on 2009-05-12T02:46:16.000+0000

I had to update my library to 1.8.0 (I'd want to avoid this) and now it works correctly. I searched about this bug fix before submitting this issue, i didn't find anything so I thought that it hadn't been already discovered. Sorry, thank you for your very fast reply.

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.