Issues

ZF-8871: Zend_Measure bug

Issue Type: Bug Created: 2010-01-19T06:59:24.000+0000 Last Updated: 2010-01-23T09:28:54.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: cyril (cybercandyman) Assignee: Thomas Weidner (thomas) Tags: - Zend_Measure

Related issues: Attachments:

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

Posted by Thomas Weidner (thomas) on 2010-01-23T09:28:54.000+0000

Fixed manual with r20555

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