summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMelvyn Sopacua <msopacua@php.net>2002-10-10 16:39:52 +0000
committerMelvyn Sopacua <msopacua@php.net>2002-10-10 16:39:52 +0000
commit0ff44ce57b24bbc90f03c5783bffe22da5d623d8 (patch)
tree9395fd471e86afdcffe4f2d162162bdd7b6f9ac4 /tests
parentbc14a6f1338891d7f8f169895d2913293dc61188 (diff)
downloadphp-git-0ff44ce57b24bbc90f03c5783bffe22da5d623d8.tar.gz
Fix platform dependencies, setlocale output, bug #19836
Testing numerics, so set numeric. If the platform doesn't support this category, passing this test is more likely to be coincedence than expected behavior.
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/034.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lang/034.phpt b/tests/lang/034.phpt
index a59d0357cf..62a1cafa4b 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_NUMERIC, $lang) {
$status = true;
continue;
}
@@ -17,7 +17,7 @@ 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_NUMERIC, $lang)) {
continue;
}
}