Skip to content

Commit

Permalink
Use the constant instead of string for locale type.
Browse files Browse the repository at this point in the history
  • Loading branch information
foobar committed Aug 1, 2002
1 parent be0a6f4 commit 725b357
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/lang/034.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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

0 comments on commit 725b357

Please sign in to comment.