{
zval **array;
HashTable *target_hash;
- PHP_ARRAY_CMP_FUNC_VARS;
+ PHP_ARRAY_CMP_FUNC_VARS;
PHP_ARRAY_CMP_FUNC_BACKUP();
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &array, &BG(user_compare_func_name)) == FAILURE) {
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
if (!target_hash) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The argument should be an array");
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
RETURN_FALSE;
}
PHP_ARRAY_CMP_FUNC_CHECK(BG(user_compare_func_name))
if (zend_hash_sort(target_hash, zend_qsort, array_user_compare, 1 TSRMLS_CC) == FAILURE) {
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
RETURN_FALSE;
}
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
RETURN_TRUE;
}
/* }}} */
{
zval **array;
HashTable *target_hash;
- PHP_ARRAY_CMP_FUNC_VARS;
+ PHP_ARRAY_CMP_FUNC_VARS;
PHP_ARRAY_CMP_FUNC_BACKUP();
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &array, &BG(user_compare_func_name)) == FAILURE) {
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
if (!target_hash) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The argument should be an array");
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
RETURN_FALSE;
}
PHP_ARRAY_CMP_FUNC_CHECK(BG(user_compare_func_name))
if (zend_hash_sort(target_hash, zend_qsort, array_user_compare, 0 TSRMLS_CC) == FAILURE) {
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
RETURN_FALSE;
}
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
RETURN_TRUE;
}
{
zval **array;
HashTable *target_hash;
- PHP_ARRAY_CMP_FUNC_VARS;
+ PHP_ARRAY_CMP_FUNC_VARS;
- PHP_ARRAY_CMP_FUNC_BACKUP();
+ PHP_ARRAY_CMP_FUNC_BACKUP();
if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &array, &BG(user_compare_func_name)) == FAILURE) {
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
if (!target_hash) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The argument should be an array");
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
RETURN_FALSE;
}
PHP_ARRAY_CMP_FUNC_CHECK(BG(user_compare_func_name))
if (zend_hash_sort(target_hash, zend_qsort, array_user_key_compare, 0 TSRMLS_CC) == FAILURE) {
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
RETURN_FALSE;
}
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
RETURN_TRUE;
}
/* }}} */
Bucket ***lists, **list, ***ptrs, *p;
char *callback_name;
- PHP_ARRAY_CMP_FUNC_VARS;
+ PHP_ARRAY_CMP_FUNC_VARS;
int (*intersect_key_compare_func)(const void *, const void * TSRMLS_DC);
WRONG_PARAM_COUNT;
}
- PHP_ARRAY_CMP_FUNC_BACKUP();
+ PHP_ARRAY_CMP_FUNC_BACKUP();
if (behavior == INTERSECT_NORMAL) {
intersect_key_compare_func = array_key_compare;
pefree(lists[i], hash->persistent);
}
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
efree(ptrs);
Bucket ***lists, **list, ***ptrs, *p;
char *callback_name;
- PHP_ARRAY_CMP_FUNC_VARS;
+ PHP_ARRAY_CMP_FUNC_VARS;
int (*diff_key_compare_func)(const void *, const void * TSRMLS_DC);
int (*diff_data_compare_func)(const void *, const void * TSRMLS_DC);
WRONG_PARAM_COUNT;
}
- PHP_ARRAY_CMP_FUNC_BACKUP();
+ PHP_ARRAY_CMP_FUNC_BACKUP();
if (behavior == DIFF_NORMAL) {
diff_key_compare_func = array_key_compare;
pefree(lists[i], hash->persistent);
}
- PHP_ARRAY_CMP_FUNC_RESTORE();
+ PHP_ARRAY_CMP_FUNC_RESTORE();
efree(ptrs);