]> granicus.if.org Git - php/commitdiff
- skip on windows (setlocale can even crash on win+VC6...)
authorPierre Joye <pajoye@php.net>
Thu, 21 Aug 2008 08:27:04 +0000 (08:27 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 21 Aug 2008 08:27:04 +0000 (08:27 +0000)
ext/standard/tests/array/locale_sort.phpt

index ed2b54959fddf1e382c43074a52fca196e17cc6e..6e5afcd0ed668e365312dd362a66dfcf46197307 100644 (file)
@@ -2,6 +2,9 @@
 Sort with SORT_LOCALE_STRING
 --SKIPIF--
 <?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+  die("Unix locale name only, not available on windows (and crashes with VC6)\n");
+}
 if (false == setlocale(LC_CTYPE, "fr_FR", "fr_FR.ISO8859-1")) {
   die("skip setlocale() failed\n");
 }