@@ -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{
333332 Bucket * f = (Bucket * ) a ;
@@ -355,7 +354,6 @@ static int php_array_reverse_key_compare_string_locale(const void *a, const void
355354 return 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{
534531 Bucket * f ;
@@ -558,7 +555,6 @@ static int php_array_reverse_data_compare_string_locale(const void *a, const voi
558555 return 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 }
604600 break ;
605601
606- #if HAVE_STRCOLL
607602 case PHP_SORT_LOCALE_STRING :
608603 if (reverse ) {
609604 return php_array_reverse_key_compare_string_locale ;
610605 } else {
611606 return php_array_key_compare_string_locale ;
612607 }
613608 break ;
614- #endif
615609
616610 case PHP_SORT_REGULAR :
617611 default :
@@ -669,15 +663,13 @@ static compare_func_t php_get_data_compare_func(zend_long sort_type, int reverse
669663 }
670664 break ;
671665
672- #if HAVE_STRCOLL
673666 case PHP_SORT_LOCALE_STRING :
674667 if (reverse ) {
675668 return php_array_reverse_data_compare_string_locale ;
676669 } else {
677670 return php_array_data_compare_string_locale ;
678671 }
679672 break ;
680- #endif
681673
682674 case PHP_SORT_REGULAR :
683675 default :
@@ -5709,9 +5701,7 @@ PHP_FUNCTION(array_multisort)
57095701 case PHP_SORT_NUMERIC :
57105702 case PHP_SORT_STRING :
57115703 case PHP_SORT_NATURAL :
5712- #if HAVE_STRCOLL
57135704 case PHP_SORT_LOCALE_STRING :
5714- #endif
57155705 /* flag allowed here */
57165706 if (parse_state [MULTISORT_TYPE ] == 1 ) {
57175707 /* Save the flag and make sure then next arg is not the current flag. */
0 commit comments