php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: r dot garcia at netia dot net
New email:
PHP Version: OS:

 

 [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' 

Regards,
Ronnie.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 14:01:34 2024 UTC