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

index 8ea259caf8fc01e755d30b93beb454103b769356..4f32ebdcb288777f5229de486cba0aa24318ac4f 100644 (file)
@@ -5,6 +5,9 @@ Test strftime() function : usage variation - Checking Preferred date and time re
 if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
     die("skip Test is not valid for Windows");
 }
+if (!setlocale(LC_ALL, "en_US")) {
+    die("skip The en_US locale is not available");
+}
 ?>
 --FILE--
 <?php