@@ -327,7 +327,6 @@ static int php_array_reverse_key_compare_string_natural(const void *a, const voi
327327}
328328/* }}} */
329329
330- #if HAVE_STRCOLL
331330static int php_array_key_compare_string_locale (const void * a , const void * b ) /* {{{ */
332331{
333332Bucket * f = (Bucket * ) a ;
@@ -355,7 +354,6 @@ static int php_array_reverse_key_compare_string_locale(const void *a, const void
355354return php_array_key_compare_string_locale (b , a );
356355}
357356/* }}} */
358- #endif
359357
360358/* Numbers are always smaller than strings int this function as it
361359 * anyway doesn't make much sense to compare two different data types.
@@ -528,7 +526,6 @@ static int php_array_reverse_natural_case_compare(const void *a, const void *b)
528526}
529527/* }}} */
530528
531- #if HAVE_STRCOLL
532529static int php_array_data_compare_string_locale (const void * a , const void * b ) /* {{{ */
533530{
534531Bucket * f ;
@@ -558,7 +555,6 @@ static int php_array_reverse_data_compare_string_locale(const void *a, const voi
558555return php_array_data_compare_string_locale (b , a );
559556}
560557/* }}} */
561- #endif
562558
563559static compare_func_t php_get_key_compare_func (zend_long sort_type , int reverse ) /* {{{ */
564560{
@@ -603,15 +599,13 @@ static compare_func_t php_get_key_compare_func(zend_long sort_type, int reverse)
603599}
604600break ;
605601
606- #if HAVE_STRCOLL
607602case PHP_SORT_LOCALE_STRING :
608603if (reverse ) {
609604return php_array_reverse_key_compare_string_locale ;
610605} else {
611606return php_array_key_compare_string_locale ;
612607}
613608break ;
614- #endif
615609
616610case PHP_SORT_REGULAR :
617611default :
@@ -669,15 +663,13 @@ static compare_func_t php_get_data_compare_func(zend_long sort_type, int reverse
669663}
670664break ;
671665
672- #if HAVE_STRCOLL
673666case PHP_SORT_LOCALE_STRING :
674667if (reverse ) {
675668return php_array_reverse_data_compare_string_locale ;
676669} else {
677670return php_array_data_compare_string_locale ;
678671}
679672break ;
680- #endif
681673
682674case PHP_SORT_REGULAR :
683675default :
@@ -5687,9 +5679,7 @@ PHP_FUNCTION(array_multisort)
56875679case PHP_SORT_NUMERIC :
56885680case PHP_SORT_STRING :
56895681case PHP_SORT_NATURAL :
5690- #if HAVE_STRCOLL
56915682case PHP_SORT_LOCALE_STRING :
5692- #endif
56935683/* flag allowed here */
56945684if (parse_state [MULTISORT_TYPE ] == 1 ) {
56955685/* Save the flag and make sure then next arg is not the current flag. */
0 commit comments