Re: PHP 4.0 Bug #4724: doubles are now using "," as a separator, not "." ?
| From: | thies at digicol dot de | Date: | Wed, 31 May 2000 11:37:55 +0000 |
| Subject: | Re: PHP 4.0 Bug #4724: doubles are now using "," as a separator, not "." ? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-19869@lists.php.net to get a copy of this message | ||
On Wed, May 31, 2000 at 11:19:42AM -0000, r.garcia@netia.net wrote:
> 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 "." ?
this is a known problem - while we are working on a real
fix - please change
setlocale(LC_ALL,"");
-to-
setlocale(LC_CTYPE,"");
to get the PHP 3 behaviour back!
>
> 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.
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany