]> granicus.if.org Git - php/commitdiff
Add SORT_LOCALE_STRING support to array_multisort() and mark it with U.
authorAndrei Zmievski <andrei@php.net>
Tue, 1 Aug 2006 22:28:26 +0000 (22:28 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 1 Aug 2006 22:28:26 +0000 (22:28 +0000)
ext/standard/array.c
unicode-progress.txt

index 29aa7504751308aaa4dda62e49ccf5bc099a1006..04aa5a29e6bb1c3c65344adaf72281a86f22d71f 100644 (file)
@@ -3693,7 +3693,7 @@ int multisort_compare(const void *a, const void *b TSRMLS_DC)
        efree(args);                                                    \
        RETURN_FALSE;
 
-/* {{{ proto bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])
+/* {{{ proto bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...]) U
    Sort multiple arrays at once similar to how ORDER BY clause works in SQL */
 PHP_FUNCTION(array_multisort)
 {
@@ -3770,6 +3770,7 @@ PHP_FUNCTION(array_multisort)
                                case SORT_REGULAR:
                                case SORT_NUMERIC:
                                case SORT_STRING:
+                               case SORT_LOCALE_STRING:
                                        /* flag allowed here */
                                        if (parse_state[MULTISORT_TYPE] == 1) {
                                                /* Save the flag and make sure then next arg is not the current flag. */
index 7b9203a0b7784e380335d0780758a3a2c04c09da..d66c1dc7226754bd36cef11ad1595d57a38e3157 100644 (file)
@@ -10,9 +10,6 @@ ext/standard
     Need to fix string_compare_function() to compare Unicode strings
     directly in code point order
 
-    array_multisort()
-        Add SORT_LOCALE_STRING, test
-
     natsort(), natcasesort()
         Params API
         Either port strnatcmp() to support Unicode or maybe use ICU's numeric collation
@@ -35,6 +32,7 @@ ext/standard
     array_map()
     array_merge()
     array_merge_recursive()
+    array_multisort()
     array_product()
     array_push(), array_pop(), array_shift(), array_unshift()
     array_pad()