ZF-2895: Zend_Locale_Format::isNumber does not call checkOptions and validate $options['locale'] exists
Description
Zend_Locale_Format::isNumber does not call checkOptions and validate $options['locale'] exists
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.