PHP 4.0 Bug #4724: doubles are now using "," as a separator, not "." ?
| From: | r dot garcia at netia dot net | Date: | Wed, 31 May 2000 11:19:42 +0000 |
| Subject: | PHP 4.0 Bug #4724: doubles are now using "," as a separator, not "." ? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19866@lists.php.net to get a copy of this message | ||
From: r.garcia@netia.net
Operating system: Linux 2.0.36 Redhat 5.2 on ix86
PHP version: 4.0.0 Release
PHP Bug Type: Other
Bug description: doubles are now using "," as a separator, not "." ?
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.