|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4724 doubles are now using "," as a separator, not "." ?
Submitted: 2000-05-31 13:19 UTC Modified: 2000-06-09 15:20 UTC
From: r dot garcia at netia dot net Assigned:
Status: Closed Package: Other
PHP Version: 4.0.0 Release OS: Linux 2.0.36 Redhat 5.2 on ix86
Private report: No CVE-ID: None
 [2000-05-31 13:19 UTC] r dot garcia at netia dot net
I noticed something strange:

$test = pi();
print("test: $test " . gettype($test));

gives me "test: 3.1415926535898 double" with PHP3 and "test: 3,1415926535898 double" with PHP4.0.0.

Is this a new feature? or a bug?
This is a problem since "$test = 0.5" will now assign "0" to $test with PHP4.

Here is my configure line: './configure' '--with-mysql' '--with-xml' '--with-apache=../apache_1.3.12' '--enable-track-vars' 



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-09 15:20 UTC] andi at cvs dot php dot net
Should be fixed in latest CVS. PHP 4.0.0 was using your locale which is not the right solution for localization at this point.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 04:05:48 2023 UTC