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

index 213fa5c7470c30c38cf9db5c235e010ba31b8e7a..e14cef611cc19d430e0644c99d02865389b8e9a5 100644 (file)
@@ -5,6 +5,10 @@ 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")) {
+    die("skip Locale en_US not available");
+}
+
 ?>
 --FILE--
 <?php