From f07b724620f902260bc6b1f063522f78a162cce5 Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Mon, 2 Sep 2002 18:03:24 +0000 Subject: [PATCH] =?utf8?q?-=20Enable=20strcoll()=20for=20win32=20build=20#?= =?utf8?q?=20Maybe=20I'm=20missing=20something.=20PHP=20has=20strcoll()=20?= =?utf8?q?since=204.0.5=20but=20HAVE=5FSTRCOLL=20#=20was=20always=20only?= =?utf8?q?=20available=20under=20Unix,=20no=20one=20activated=20it=20for?= =?utf8?q?=20Win32=20since=20#=20then=3F=20#=20#=20Test=20to=20show=20it?= =?utf8?q?=20works:=20#=20<=3F=20$a=3Darray("a",=20"z",=20"=C3=A4");=20set?= =?utf8?q?locale(LC=5FALL,=20"German");=20usort($a,=20"strcoll");=20var=5F?= =?utf8?q?dump($a);=20=3F>=20#=20#=20Output:=20#=20array(3)=20{=20#=20=20?= =?utf8?q?=20[0]=3D>=20#=20=20=20string(1)=20"a"=20#=20=20=20[1]=3D>=20#?= =?utf8?q?=20=20=20string(1)=20"=C3=A4"=20#=20=20=20[2]=3D>=20#=20=20=20st?= =?utf8?q?ring(1)=20"z"=20#=20}=20#=20#=20Thanks=20to=20a=20comment=20foun?= =?utf8?q?d=20on=20the=20usort()=20page=20and=20to=20a=20dlcp=20post=20abo?= =?utf8?q?ut=20a=20#=20similar=20issue.=20#=20#=20Worth=20for=20a=20MFH=20?= =?utf8?q?for=204.2.3,=20anyone=20=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- main/config.w32.h.in | 4 ++++ 1 file changed, 4 insertions(+) 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 + -- 2.50.1