ZF-8871: Zend_Measure bug

Description

Exemple in documentation works with framework 1.8, but not with 1.9.6 AND 1.9.7:

$locale = new Zend_Locale('de'); $mystring = "The boat is 1,234.50 long."; $unit = new Zend_Measure_Length($mystring, Zend_Measure_Length::STANDARD, $locale); echo $unit; // outputs "1.234 m"

throw exception :

object(Zend_Measure_Exception)#96 (6) { ["message:protected"] => string(111) "No localized value in The boat is 1,234.50 long. found, or the given number does not match the localized format" ["string:private"] => string(0) "" ["code:protected"] => int(0) ["file:protected"] => string(55) "C:\projets\GCV-V2\www\library\Zend\Measure\Abstract.php" ["line:protected"] => int(203) ["trace:private"] => array(7) { [0] => array(6) { ["file"] => string(55) "C:\projets\GCV-V2\www\library\Zend\Measure\Abstract.php" ["line"] => int(99) ["function"] => string(8) "setValue" ["class"] => string(21) "Zend_Measure_Abstract" ["type"] => string(2) "->" ["args"] => array(3) { [0] => string(26) "The boat is 1,234.50 long." [1] => string(5) "METER" [2] => string(2) "de"

Comments

Fixed manual with r20555