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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 17:02:17 2025 UTC