]> granicus.if.org Git - php/commitdiff
Remove unused assignment
authorAnatol Belski <ab@php.net>
Wed, 7 Mar 2018 16:12:27 +0000 (17:12 +0100)
committerAnatol Belski <ab@php.net>
Wed, 7 Mar 2018 16:12:27 +0000 (17:12 +0100)
ext/standard/array.c

index 50ea6802ae301d347adc453530bab9527d4f6a24..3e9fb1090a5c8611228194aa1ddcce4622c82945 100644 (file)
@@ -4763,7 +4763,6 @@ static void php_array_intersect(INTERNAL_FUNCTION_PARAMETERS, int behavior, int
        } else if (behavior & INTERSECT_ASSOC) { /* triggered also when INTERSECT_KEY */
                /* INTERSECT_KEY is subset of INTERSECT_ASSOC. When having the former
                 * no comparison of the data is done (part of INTERSECT_ASSOC) */
-               intersect_key_compare_func = php_array_key_compare_string;
 
                if (data_compare_type == INTERSECT_COMP_DATA_INTERNAL && key_compare_type == INTERSECT_COMP_KEY_INTERNAL) {
                        /* array_intersect_assoc() or array_intersect_key() */