diff options
author | foobar <sniper@php.net> | 2002-08-01 11:49:41 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-08-01 11:49:41 +0000 |
commit | 725b3573be72aa94590c2ffed4c3c4c87e47bbe9 (patch) | |
tree | bfc3c108499779aa49e6092e492799e0151869b8 /tests | |
parent | be0a6f4949062784901a514c3ad853518b91b469 (diff) | |
download | php-git-725b3573be72aa94590c2ffed4c3c4c87e47bbe9.tar.gz |
Use the constant instead of string for locale type.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/034.phpt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lang/034.phpt b/tests/lang/034.phpt index 2516f8604c..a59d0357cf 100644 --- a/tests/lang/034.phpt +++ b/tests/lang/034.phpt @@ -4,7 +4,7 @@ Locale settings affecting float parsing <?php # try to activate a german locale $status = false; foreach(array("de_DE", "de", "german", "ge") as $lang) { - if($lang == setlocale("LC_ALL", $lang)) { + if($lang == setlocale(LC_ALL, $lang)) { $status = true; continue; } @@ -17,12 +17,13 @@ if(!$status) print "skip"; <?php # try to activate a german locale foreach(array("de_DE", "de", "german", "ge") as $lang) { - if($lang == setlocale("LC_ALL", $lang)) { + if($lang == setlocale(LC_ALL, $lang)) { continue; } } -echo (float)"3.14"; +echo (float)"3.14", "\n"; + ?> --EXPECT-- 3.14 |