mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08:00
59651c4e58
locale-independent. (PHP part)
21 lines
483 B
PHP
21 lines
483 B
PHP
--TEST--
|
|
Bug #30638 (localeconv returns wrong LC_NUMERIC settings)
|
|
--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");
|
|
|
|
$lc = localeconv();
|
|
printf("decimal_point: %s\n", $lc['decimal_point']);
|
|
printf("thousands_sep: %s\n", $lc['thousands_sep']);
|
|
?>
|
|
--EXPECT--
|
|
decimal_point: ,
|
|
thousands_sep: .
|