mirror of
https://github.com/php/php-src.git
synced 2024-11-29 12:53:37 +08:00
19 lines
337 B
PHP
19 lines
337 B
PHP
--TEST--
|
|
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
|