1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/tests/lang/034.phpt
2002-10-10 19:52:13 +00:00

30 lines
524 B
PHP

--TEST--
Locale settings affecting float parsing
--SKIPIF--
<?php # try to activate a german locale
$status = false;
foreach(array("de_DE", "de", "german", "ge") as $lang) {
if($lang == setlocale(LC_NUMERIC, $lang)) {
$status = true;
continue;
}
}
if(!$status) print "skip";
?>
--POST--
--GET--
--FILE--
<?php
# try to activate a german locale
foreach(array("de_DE", "de", "german", "ge") as $lang) {
if($lang == setlocale(LC_NUMERIC, $lang)) {
continue;
}
}
echo (float)"3.14", "\n";
?>
--EXPECT--
3,14