mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +08:00
59651c4e58
locale-independent. (PHP part)
18 lines
349 B
PHP
18 lines
349 B
PHP
--TEST--
|
|
Bug #12647 (Locale settings affecting float parsing)
|
|
--SKIPIF--
|
|
<?php # try to activate a german locale
|
|
if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge") === FALSE) {
|
|
print "skip";
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
# activate the german locale
|
|
setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge");
|
|
|
|
echo (float)"3.14", "\n";
|
|
?>
|
|
--EXPECT--
|
|
3,14
|