Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5.0
-
Fix Version/s: 1.5.1
-
Component/s: Zend_Locale
-
Labels:None
-
Fix Version Priority:Must Have
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.
Fixed with SVN-8884