php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4479 Floating point numbers assume OS locale settings
Submitted: 2000-05-17 11:25 UTC Modified: 2000-05-26 12:15 UTC
From: advgraph at regiocom dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Release Candidate 2 OS: Linux RH6.1
Private report: No CVE-ID: None
 [2000-05-17 11:25 UTC] advgraph at regiocom dot net
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-26 12:15 UTC] hholzgra at cvs dot php dot net
please update your Zend CVS - should be fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 19:01:26 2024 UTC