summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrakjoe <joe.watkins@live.co.uk>2014-08-21 10:03:48 +0100
committerkrakjoe <joe.watkins@live.co.uk>2014-08-21 10:03:48 +0100
commitcbc7b8e67c0baab5bf6bd98983b2320cd3555a9a (patch)
treebea9ad2235923c077022d58fcd1a907b65540654
parente530817209181243256a8be883bffa2995c58587 (diff)
downloadphp-git-cbc7b8e67c0baab5bf6bd98983b2320cd3555a9a.tar.gz
remove bogus locale use from test
-rw-r--r--ext/standard/tests/strings/setlocale_variation2.phpt7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/standard/tests/strings/setlocale_variation2.phpt b/ext/standard/tests/strings/setlocale_variation2.phpt
index 038ba58c5e..10ae22fe0c 100644
--- a/ext/standard/tests/strings/setlocale_variation2.phpt
+++ b/ext/standard/tests/strings/setlocale_variation2.phpt
@@ -18,8 +18,11 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
/* setlocale() to set all available locales in the system and check the success count */
echo "*** Testing setlocale() : usage variations ***\n";
-function good_locale($locale) {
- return $locale !== 'tt_RU@iqtelif.UTF-8';
+function good_locale($locale) {
+ /**
+ * Note: no_NO is a bogus locale and should not be used, see https://bugzilla.redhat.com/show_bug.cgi?id=532487
+ **/
+ return $locale !== 'tt_RU@iqtelif.UTF-8' && substr($locale, 0, 5) !== "no_NO";
}
/* Prototype : array list_system_locales( void )