PHP 4.0 Bug #4479: Floating point numbers assume OS locale settings
| From: | advgraph at regiocom dot net | Date: | Wed, 17 May 2000 09:25:56 +0000 |
| Subject: | PHP 4.0 Bug #4479: Floating point numbers assume OS locale settings | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18859@lists.php.net to get a copy of this message | ||
From: advgraph@regiocom.net
Operating system: Linux RH6.1
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Scripting Engine problem
Bug description: Floating point numbers assume OS locale settings
When the OS is set to a country's locale that uses a number format different from
en_US(1.1223), for example de_DE (1,1223), then the program tries to use this for all numerical
operations. For example:
This will not work:
print (1.13241 + 4.11234);
But instead this will:
print ("1,13241" + "4,11234");
Without the quotes would cause a parse error.
This is obviously unacceptable as no program can be ported.