cvs: php4 /main config.w32.h.in

From: Date: Mon, 02 Sep 2002 18:03:24 +0000
Subject: cvs: php4 /main config.w32.h.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13790@lists.php.net to get a copy of this message
mfischer Mon Sep 2 14:03:24 2002 EDT Modified files: /php4/main config.w32.h.in Log: - 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 ? Index: php4/main/config.w32.h.in diff -u php4/main/config.w32.h.in:1.10 php4/main/config.w32.h.in:1.11 --- php4/main/config.w32.h.in:1.10 Wed Jul 3 14:44:40 2002 +++ php4/main/config.w32.h.in Mon Sep 2 14:03:24 2002 @@ -2,7 +2,7 @@ Build Configuration for Win32. This has only been tested with MS VisualC++ 6 (and later). - $Id: config.w32.h.in,v 1.10 2002/07/03 18:44:40 fmk Exp $ + $Id: config.w32.h.in,v 1.11 2002/09/02 18:03:24 mfischer Exp $ */ /* Default PHP / PEAR directories */ @@ -165,3 +165,7 @@ #define SIZEOF_INT 4 #define HAVE_GLOB #define PHP_SHLIB_SUFFIX "dll" + +/* Win32 supports strcoll */ +#define HAVE_STRCOLL 1 +

« previous php.cvs (#13790) next »