@@ -962,22 +962,6 @@ static int php_array_user_compare(Bucket *a, Bucket *b) /* {{{ */
962
962
}
963
963
/* }}} */
964
964
965
- /* check if comparison function is valid */
966
- #define PHP_ARRAY_CMP_FUNC_CHECK (func_name ) \
967
- if (!zend_is_callable(*func_name, 0, NULL)) { \
968
- php_error_docref(NULL, E_WARNING, "Invalid comparison function"); \
969
- BG(user_compare_fci) = old_user_compare_fci; \
970
- BG(user_compare_fci_cache) = old_user_compare_fci_cache; \
971
- RETURN_FALSE; \
972
- } \
973
-
974
- /* Clear FCI cache otherwise : for example the same or other array with
975
- * (partly) the same key values has been sorted with uasort() or
976
- * other sorting function the comparison is cached, however the name
977
- * of the function for comparison is not respected. see bug #28739 AND #33295
978
- *
979
- * Following defines will assist in backup / restore values. */
980
-
981
965
#define PHP_ARRAY_CMP_FUNC_VARS \
982
966
zend_fcall_info old_user_compare_fci; \
983
967
zend_fcall_info_cache old_user_compare_fci_cache \
@@ -2567,7 +2551,7 @@ static void php_compact_var(HashTable *eg_active_symbol_table, zval *return_valu
2567
2551
zend_hash_update (Z_ARRVAL_P (return_value ), Z_STR_P (entry ), & data );
2568
2552
}
2569
2553
} else {
2570
- php_error_docref (NULL , E_NOTICE , "Undefined variable $%s" , ZSTR_VAL (Z_STR_P (entry )));
2554
+ php_error_docref (NULL , E_WARNING , "Undefined variable $%s" , ZSTR_VAL (Z_STR_P (entry )));
2571
2555
}
2572
2556
} else if (Z_TYPE_P (entry ) == IS_ARRAY ) {
2573
2557
if (Z_REFCOUNTED_P (entry )) {
0 commit comments