php-src/tests/lang/034.phpt
2004-05-19 08:45:46 +00:00

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