#28746 [Fbk->NoF]: money_format broke in php 4.3.6
| From: | php-bugs at lists dot php dot net | Date: | Sun, 20 Jun 2004 23:00:05 +0000 |
| Subject: | #28746 [Fbk->NoF]: money_format broke in php 4.3.6 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61135@lists.php.net to get a copy of this message | ||
ID: 28746
Updated by: php-bugs@lists.php.net
Reported By: isp at derdev dot com
-Status: Feedback
+Status: No Feedback
Bug Type: Output Control
Operating System: linux
PHP Version: 4.3.6
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2004-06-13 19:01:24] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Works fine here, keep in mind that PHP's money_format()
function is a direct wrapper around the libc C equivalent.
If it does not work this has likely to do with your libc
then PHP.
------------------------------------------------------------------------
[2004-06-11 21:48:32] isp at derdev dot com
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 this bug report at http://bugs.php.net/?id=28746&edit=1