Issues

ZF-2895: Zend_Locale_Format::isNumber does not call checkOptions and validate $options['locale'] exists

Issue Type: Bug Created: 2008-03-17T01:28:06.000+0000 Last Updated: 2008-03-21T17:11:57.000+0000 Status: Resolved Fix version(s): - 1.5.1 (25/Mar/08)

Reporter: Geoffrey Tran (potatobob) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:

Description

Zend_Locale_Format::isNumber does not call checkOptions and validate $options['locale'] exists

<pre class="highlight">
    public static function isNumber($input, array $options = array())
    {
        // Get correct signs for this locale
        $symbols = Zend_Locale_Data::getList($options['locale'],'symbols');

        // Parse input locale aware
        $regex = '/^([' . $symbols['minus'] . '-]){0,1}(\d+(\\' . $symbols['group']
            . '){0,1})*(\\' . $symbols['decimal'] . '){0,1}\d+$/';
        preg_match($regex, $input, $found);

        if (!isset($found[0]))
            return false;
        return true;
    }

This can cause a php error.

Comments

Posted by Thomas Weidner (thomas) on 2008-03-17T01:59:51.000+0000

Fixed with SVN-8884

Posted by Wil Sinclair (wil) on 2008-03-21T17:11:57.000+0000

I'm assuming this fix is merged to the 1.5 release branch for release with 1.5.1. Please update JIRA if this is not the case.

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