@@ -445,7 +445,6 @@ static bucket_compare_func_t php_get_data_compare_func(zend_long sort_type, int
445
445
} else {
446
446
return php_array_data_compare_numeric ;
447
447
}
448
- break ;
449
448
450
449
case PHP_SORT_STRING :
451
450
if (sort_type & PHP_SORT_FLAG_CASE ) {
@@ -461,7 +460,6 @@ static bucket_compare_func_t php_get_data_compare_func(zend_long sort_type, int
461
460
return php_array_data_compare_string ;
462
461
}
463
462
}
464
- break ;
465
463
466
464
case PHP_SORT_NATURAL :
467
465
if (sort_type & PHP_SORT_FLAG_CASE ) {
@@ -477,15 +475,13 @@ static bucket_compare_func_t php_get_data_compare_func(zend_long sort_type, int
477
475
return php_array_natural_compare ;
478
476
}
479
477
}
480
- break ;
481
478
482
479
case PHP_SORT_LOCALE_STRING :
483
480
if (reverse ) {
484
481
return php_array_reverse_data_compare_string_locale ;
485
482
} else {
486
483
return php_array_data_compare_string_locale ;
487
484
}
488
- break ;
489
485
490
486
case PHP_SORT_REGULAR :
491
487
default :
@@ -494,9 +490,8 @@ static bucket_compare_func_t php_get_data_compare_func(zend_long sort_type, int
494
490
} else {
495
491
return php_array_data_compare ;
496
492
}
497
- break ;
498
493
}
499
- return NULL ;
494
+ ZEND_UNREACHABLE () ;
500
495
}
501
496
/* }}} */
502
497
@@ -509,7 +504,6 @@ static bucket_compare_func_t php_get_data_compare_func_unstable(zend_long sort_t
509
504
} else {
510
505
return php_array_data_compare_numeric_unstable ;
511
506
}
512
- break ;
513
507
514
508
case PHP_SORT_STRING :
515
509
if (sort_type & PHP_SORT_FLAG_CASE ) {
@@ -525,7 +519,6 @@ static bucket_compare_func_t php_get_data_compare_func_unstable(zend_long sort_t
525
519
return php_array_data_compare_string_unstable ;
526
520
}
527
521
}
528
- break ;
529
522
530
523
case PHP_SORT_NATURAL :
531
524
if (sort_type & PHP_SORT_FLAG_CASE ) {
@@ -541,15 +534,13 @@ static bucket_compare_func_t php_get_data_compare_func_unstable(zend_long sort_t
541
534
return php_array_natural_compare_unstable ;
542
535
}
543
536
}
544
- break ;
545
537
546
538
case PHP_SORT_LOCALE_STRING :
547
539
if (reverse ) {
548
540
return php_array_reverse_data_compare_string_locale_unstable ;
549
541
} else {
550
542
return php_array_data_compare_string_locale_unstable ;
551
543
}
552
- break ;
553
544
554
545
case PHP_SORT_REGULAR :
555
546
default :
@@ -558,9 +549,8 @@ static bucket_compare_func_t php_get_data_compare_func_unstable(zend_long sort_t
558
549
} else {
559
550
return php_array_data_compare_unstable ;
560
551
}
561
- break ;
562
552
}
563
- return NULL ;
553
+ ZEND_UNREACHABLE () ;
564
554
}
565
555
/* }}} */
566
556
0 commit comments