Hello Stig,
SSB> Huh, are you saying PHP _is_ locale-dependant?
Yes.
Example:
1.php
<?
setlocale(LC_ALL,'ru_RU.CP1251');
include('2.php');
?>
2.php
<?
$var = 1.3;
var_dump($var);
?>
gap /home/local/sitnikov> GET http://si.infonet.ee/1.php
float(1)
Locale ru_RU.CP1251 has decimal delimiter ',';
I understand why it occurs (thanks to Stanislav Malyshev), but this is
not correct behaviour IMHO, and must be fixed ASAP.
SSB> I was not aware of that
SSB> (but then again I always use the "C" locale).
SSB> - Stig
Best regards,
Andrew Sitnikov
e-mail : [EMAIL PROTECTED]
GSM : (+372) 56491109
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php