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

index 7ded0336e8e4c2d636421d70bd75fc31aa7adb3a..e62d6b088339b6ae610f60c7ba925d30931b64b4 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");
 }