2002-07-17 08:49:26 +00:00
|
|
|
--TEST--
|
2004-11-03 23:36:51 +00:00
|
|
|
Bug #12647 (Locale settings affecting float parsing)
|
2002-07-17 08:49:26 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php # try to activate a german locale
|
2002-10-23 20:35:16 +00:00
|
|
|
if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge") === FALSE) {
|
|
|
|
print "skip";
|
2002-07-17 08:49:26 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2002-10-23 20:35:16 +00:00
|
|
|
# activate the german locale
|
|
|
|
setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge");
|
2002-07-17 08:49:26 +00:00
|
|
|
|
2002-08-01 11:49:41 +00:00
|
|
|
echo (float)"3.14", "\n";
|
2002-07-17 08:49:26 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
2002-10-10 18:36:12 +00:00
|
|
|
3,14
|