Date: 05/17/00
- Next message: vvs_php <email protected>: "[PHP-DEV] PHP RUSAPCHE API frontend"
- Previous message: news.php.net: "[PHP-DEV] test"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: vvs_php <email protected>: "[PHP-DEV] PHP RUSAPCHE API frontend"
- Previous message: news.php.net: "[PHP-DEV] test"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

