Skip to content

Commit f07b724

Browse files
committed
- 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 ?
1 parent 96ab239 commit f07b724

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/config.w32.h.in

+4
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,7 @@
165165
#define SIZEOF_INT 4
166166
#define HAVE_GLOB
167167
#define PHP_SHLIB_SUFFIX "dll"
168+
169+
/* Win32 supports strcoll */
170+
#define HAVE_STRCOLL 1
171+

0 commit comments

Comments
 (0)