|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16532 locale information (LC_NUMERIC) not used in bcmath functions
Submitted: 2002-04-10 11:53 UTC Modified: 2002-07-23 14:13 UTC
From: anze at volja dot net Assigned:
Status: Not a bug Package: BC math related
PHP Version: 4.1.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
31 - 8 = ?
Subscribe to this entry?

 [2002-04-10 11:53 UTC] anze at volja dot 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...


// first setlocale():
if (
  echo "SETLOCALE() ERROR!!!<br>\n";

// this line outputs "0.00" instead of "0,80":
echo bcadd("0,3","0,5",2);



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-23 14:13 UTC]
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)
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 11 06:05:44 2022 UTC