[PHP-DEV] PHP 4.0 Bug #4479: Floating point numbers assume OS locale settings From: advgraph <email protected>
Date: 05/17/00

From: advgraph <email protected>
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.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>