summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Fischer <mfischer@php.net>2002-09-02 18:03:24 +0000
committerMarkus Fischer <mfischer@php.net>2002-09-02 18:03:24 +0000
commitf07b724620f902260bc6b1f063522f78a162cce5 (patch)
treefd8f9cf481208ce0fc7df63708049d60d2ad8bcb
parent96ab23981ccb6bb84fe9daeac143768a7a502f2f (diff)
downloadphp-git-f07b724620f902260bc6b1f063522f78a162cce5.tar.gz
- Enable strcoll() for win32 build
# 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 ?
-rw-r--r--main/config.w32.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/config.w32.h.in b/main/config.w32.h.in
index 3ec7a766bc..fa5b19a24f 100644
--- a/main/config.w32.h.in
+++ b/main/config.w32.h.in
@@ -165,3 +165,7 @@
#define SIZEOF_INT 4
#define HAVE_GLOB
#define PHP_SHLIB_SUFFIX "dll"
+
+/* Win32 supports strcoll */
+#define HAVE_STRCOLL 1
+