php-src/tests/lang/034.phpt
2002-10-23 20:35:16 +00:00

21 lines
354 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";
}
?>
--POST--
--GET--
--FILE--
<?php
# activate the german locale
setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge");
echo (float)"3.14", "\n";
?>
--EXPECT--
3,14