1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00

Fixed array comparation

This commit is contained in:
Xinchen Hui
2014-02-25 12:31:35 +08:00
parent 1dc69e86f9
commit d35a068aa6

View File

@@ -2306,11 +2306,11 @@ string_cmp:
}
/* }}} */
static int hash_zval_compare_function(const zval **z1, const zval **z2 TSRMLS_DC) /* {{{ */
static int hash_zval_compare_function(const zval *z1, const zval *z2 TSRMLS_DC) /* {{{ */
{
zval result;
if (compare_function(&result, (zval *) *z1, (zval *) *z2 TSRMLS_CC)==FAILURE) {
if (compare_function(&result, z1, z2 TSRMLS_CC)==FAILURE) {
return 1;
}
return Z_LVAL(result);