ZF-7509: Zend_Currency::toCurrency() - no space between number and Currency (PHP version affected)
I don't know if this is gonna get "fixed" - since I think it might PHP version related, but maybe it gets decided that it will get some workaround.
$currency = new Zend_Currency('en_US'); $currency->setFormat(array('display' => Zend_Currency::USE_NAME, 'position' => Zend_Currency::RIGHT)); // prints '1.000,00 US Dollar' echo $currency->toCurrency(1000);
On PHP 5.2.4 (ZF 1.8.2) it prints "1.000,00 US Dollar".
On PHP 5.2.6 (ZF 1.8.2 & 1.9.0) it prints "1.000,00US Dollar"
The space between number and currency is missing. Now all I can see from it is someway PHP version related - or i missed something on the system level.
Can anyone else confirm this?