Re[2]: [PHP-DEV] PHP 4.3 charter and release plan
| From: | Andrew Sitnikov | Date: | Sat, 04 May 2002 08:14:28 +0000 |
| Subject: | Re[2]: [PHP-DEV] PHP 4.3 charter and release plan | ||
| References: | 1 2 3 | Groups: | php.dev php.qa |
| Request: | Send a blank email to php-dev+get-83681@lists.php.net to get a copy of this message | ||
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 : sitnikov@infonet.ee
GSM : (+372) 56491109