ID:               44183
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mail at tomsommer dot dk
-Status:           Open
+Status:           Feedback
 Bug Type:         Math related
 Operating System: Linux
 PHP Version:      5.2.5
-Assigned To:      
+Assigned To:      hholzgra
 New Comment:

What is the exact linux distribution version you are using?

I just tested this with Ubuntu 8.04 and the bundled PHP 5.2.4 
version and got a "-1.00" result just fine with da_DA.UTF-8 ...


Previous Comments:
------------------------------------------------------------------------

[2008-02-20 10:31:55] mail at tomsommer dot dk

Description:
------------
money_format trims the negative symbol for certain locales.

For danish, this means that the string "kr -1,00" is trimmed to "1,00"
if the "!" modifier is given, trimming more than just the currency
symbol.

Reproduce code:
---------------
setlocale(LC_ALL, 'da_DK', 'danish');
echo money_format('%!n', -1);

Expected result:
----------------
-1,00

Actual result:
--------------
1,00


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44183&edit=1

Reply via email to