From d35a068aa62d58454f7af6f5f657fe3ef9e54067 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Tue, 25 Feb 2014 12:31:35 +0800 Subject: [PATCH] Fixed array comparation --- Zend/zend_operators.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.50.1