summaryrefslogtreecommitdiff
path: root/tests/lang/034.phpt
blob: 9c640415d53867712d03aef17bf98562b7b7bb73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #12647 (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