From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.1.0
PHP Bug Type:     BC math related
Bug description:  locale information (LC_NUMERIC) not used in bcmath functions

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 bug report at http://bugs.php.net/?id=16532&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16532&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16532&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16532&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16532&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16532&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16532&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16532&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16532&r=submittedtwice

Reply via email to