]> granicus.if.org Git - php/commitdiff
- Enable strcoll() for win32 build
authorMarkus Fischer <mfischer@php.net>
Mon, 2 Sep 2002 18:03:24 +0000 (18:03 +0000)
committerMarkus Fischer <mfischer@php.net>
Mon, 2 Sep 2002 18:03:24 +0000 (18:03 +0000)
# Maybe I'm missing something. PHP has strcoll() since 4.0.5 but HAVE_STRCOLL
# was always only available under Unix, no one activated it for Win32 since
# then?
#
# Test to show it works:
# <? $a=array("a", "z", "ä"); setlocale(LC_ALL, "German"); usort($a, "strcoll"); var_dump($a); ?>
#
# Output:
# array(3) {
#   [0]=>
#   string(1) "a"
#   [1]=>
#   string(1) "ä"
#   [2]=>
#   string(1) "z"
# }
#
# Thanks to a comment found on the usort() page and to a dlcp post about a
# similar issue.
#
# Worth for a MFH for 4.2.3, anyone ?

main/config.w32.h.in

index 3ec7a766bc8310bc86581baa84fb81e58dbb8c4e..fa5b19a24f5a8141fccdfe0d5d025c11e85d175e 100644 (file)
 #define SIZEOF_INT 4
 #define HAVE_GLOB
 #define PHP_SHLIB_SUFFIX "dll"
+
+/* Win32 supports strcoll */
+#define HAVE_STRCOLL 1
+