From: Xinchen Hui Date: Tue, 25 Feb 2014 04:31:35 +0000 (+0800) Subject: Fixed array comparation X-Git-Tag: POST_PHPNG_MERGE~412^2~544 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d35a068aa62d58454f7af6f5f657fe3ef9e54067;p=php Fixed array comparation --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 7e77d976fb..9b46ae4456 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -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);