ZF-3610: Inaccuracy: $currency->setFormat( string );
Description
http://framework.zend.com/manual/en/…
According to Example 8.4:
$currency->setFormat(Zend_Currency::USE_NAME&Zend_Currency::RIGHT);
// prints '1.000,00 US Dollar'
echo $currency->toCurrency(1000);
$currency->setFormat("American Dollar");
// prints '1.000,00 American Dollar'
echo $currency->toCurrency(1000);
This is inaccurate, since setFormat() only takes one array argument, according to v1.5.2 (Currency/Currency.php) beginning from line 223:
public function setFormat(array $options = array())
{
$this->_options = array_merge($this->_options, $this->checkOptions($options));
return $this;
}
Comments
Posted by Thomas Weidner (thomas) on 2008-07-15T03:49:38.000+0000
Fixed with r10092
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:38.000+0000
Updating for the 1.6.0 release.