Giuseppe Tanzilli - CSF <[EMAIL PROTECTED]> wrote:

> Ciao,
> thanks for the so quick  reply,
> just one more question to the group,
> 
> will be fixed before 4.3.2 ?

Although I don't know how are you handling floats in your script,
the current casting behaviour is correct as stated in that bug page, and 
maybe we'll have to introduce a new function to convert numeric strings to 
floats in a locale-aware way.

I mean

<?php
setlocale(LC_NUMERIC, "[EMAIL PROTECTED]");
var_dump((float)"1,43");
?>

here the output of this script should be

float(1)

because the language features should not be affected by anything variable 
for the sake of portability.

Moriyoshi


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to