Bug #16532 Updated: locale information (LC_NUMERIC) not used in bcmath functions
| From: | hholzgra@php.net | Date: | Tue, 23 Jul 2002 18:13:39 +0000 |
| Subject: | Bug #16532 Updated: locale information (LC_NUMERIC) not used in bcmath functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14924@lists.php.net to get a copy of this message | ||
ID: 16532
Updated by: hholzgra@php.net
Reported By: anze@volja.net
-Status: Open
+Status: Bogus
Bug Type: BC math related
Operating System: Linux
PHP Version: 4.1.0
New Comment:
locale settings should not affect the way code is parsed
(it still does in some places of Zend Engine, but that is a different
story)
Previous Comments:
------------------------------------------------------------------------
[2002-04-10 11:53:29] anze@volja.net
Summary says it all...
Some could argue it is a missing feature, not a bug, but
it would make a life a bit easier for non-english
developers, especially as this library is ofteh used for
monetary stuff...
<?php
// first setlocale():
if (
(FALSE===setlocale("LC_ALL","sl_SI"))&&
(FALSE===setlocale("LC_ALL","slovenian"))&&
(FALSE===setlocale("LC_ALL","slovene"))&&
(FALSE===setlocale("LC_ALL","slovenski"))&&
(FALSE===setlocale("LC_ALL","sl"))
)
echo "SETLOCALE() ERROR!!!<br>\n";
// this line outputs "0.00" instead of "0,80":
echo bcadd("0,3","0,5",2);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16532&edit=1