From:             isp at derdev dot com
Operating system: linux
PHP version:      4.3.6
PHP Bug Type:     Output Control
Bug description:  money_format broke in php 4.3.6

Description:
------------
The combination of setlocale and money_format worked for me in php 4.3.4. 
Upgrading to php 4.3.6 and changing servers seems to have broken setlocale
and/or money_format.

Reproduce code:
---------------
<?php
$item="987654.321";
setlocale(LC_MONETARY, 'en_US');
print money_format('%.2n',$item);
# prints 987654.321

?>

Expected result:
----------------
$987,654.32

Actual result:
--------------
987654.32

-- 
Edit bug report at http://bugs.php.net/?id=28746&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28746&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28746&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28746&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28746&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28746&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28746&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28746&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28746&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28746&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28746&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28746&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28746&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28746&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28746&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28746&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28746&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28746&r=float

Reply via email to