#49254 [Opn->Bgs]: setlocale affects math functions
| From: | jani@php.net | Date: | Mon, 17 Aug 2009 09:40:20 +0000 |
| Subject: | #49254 [Opn->Bgs]: setlocale affects math functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141131@lists.php.net to get a copy of this message | ||
ID: 49254
Updated by: jani@php.net
Reported By: stakadush at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Math related
Operating System: Ubuntu 9.04 & OS X 10.5.7
PHP Version: 5.3.0
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2009-08-14 14:49:35] stakadush at yahoo dot com
Description:
------------
setlocalte affects the return of math functions, making them unusable.
in this example the dot is being replaced with the italian comma
notation.
Reproduce code:
---------------
setlocale(LC_ALL, 'it_IT.UTF-8');
echo abs(-5.5);
Expected result:
----------------
5.5
Actual result:
--------------
5,5
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49254&edit=1