]> granicus.if.org Git - php/commitdiff
fix skipif
authorZoe Slattery <zoe@php.net>
Thu, 25 Jun 2009 14:44:01 +0000 (14:44 +0000)
committerZoe Slattery <zoe@php.net>
Thu, 25 Jun 2009 14:44:01 +0000 (14:44 +0000)
ext/date/tests/gmstrftime_variation22.phpt

index 3ae4c078b5dc41606c06bdd56c379d7e9b0c930c..788433562e344fd55ec4f087a67297878e326101 100644 (file)
@@ -5,6 +5,9 @@ Test gmstrftime() function : usage variation - Checking Preferred date and time
 if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
     die("skip Test is not valid for Windows");
 }
+if (!setlocale(LC_ALL, "en_US.utf8", "en_US")) {
+    die("skip Locale en_US or en_US.utf8 is required to run this test");
+}
 ?>
 --FILE--
 <?php