php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4631 related to /etc/sysconfig/i18n
Submitted: 2000-05-26 23:44 UTC Modified: 2000-09-17 21:09 UTC
From: thierry at museux dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (26/05/2000) OS: linux RH 6.2
Private report: No CVE-ID: None
 [2000-05-26 23:44 UTC] thierry at museux dot com
i install linux rh 6.2 with french env var and from source apache 1.3.12 and php 4.0.0 
/etc/scripts/i18n contains:
LANG=fr
LINGUAS=fr_FR:fr
LANGUAGE=fr
LC_ALL=fr

i use this very simple script:
<? 
 $var=1.123; 
 print("var=$var");   
?> 
It is displayed: 
var=1
 if i used $var=1,123; instead of $var=1.123; i have this parse error:
Parse error: parse error in /home/usr/local/apache/htdocs/double.php3 on line 2


If /etc/sysconfig/i18n contains:
LANG=en
LINGUAS=en_EN:en
LANGUAGE=en
LC_ALL=en_EN

It is displayed: 
var=1.123
of course...
with fr all the calculation are false



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-27 03:16 UTC] joey at cvs dot php dot net
This is a known issue. The C library strtod() is the culprit.
There will be a fix for this (in 4.0.1?) soon. Will close bug then.
Thanks for the report.
 [2000-07-26 05:28 UTC] zak@php.net
Hi Joey,

Has anything happened with this bug?
 [2000-07-26 07:26 UTC] joey@php.net
AFAIK, this is still a problem. I know Andi was working
on a solution, I will ask him a/b it.
 [2000-09-17 21:09 UTC] stas@php.net
Seems to be fixed now. If not, please reopen.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 19:01:26 2024 UTC