php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5797 $a=1.234 does not work, local language setting german
Submitted: 2000-07-26 17:10 UTC Modified: 2001-02-10 14:59 UTC
From: p dot sturm at aixigo dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 3.0.16 OS: Suse 6.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: p dot sturm at aixigo dot de
New email:
PHP Version: OS:

 

 [2000-07-26 17:10 UTC] p dot sturm at aixigo dot de
<?php
$a = 0.8;
echo "DEBUG: a = ".$a."<br>";
?>

will print

a = 0

if environment variable LANG is set to 'german'.

The bug won't appear, if language environment is not set. (Default is English)

The bug is also report with ID #4631 (but only for PHP4)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 17:13 UTC] waldschrott@php.net
Hm, I?m not sure how 3.0.16 acts on this, but the german sep is a "," not a "."...
 [2000-07-26 17:29 UTC] p dot sturm at aixigo dot de
Yes, but the locale settings shouldn't affect the script language syntax. 
PHP is no Visual Bas**.
 [2000-07-26 17:36 UTC] p dot sturm at aixigo dot de
Yes, but the locale settings shouldn't affect the script language syntax. 
PHP is no Visual Bas**.
 [2000-07-26 18:05 UTC] stas@php.net
This is fixed in PHP 4 CVS, not sure about PHP 3.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC