]> granicus.if.org Git - php/commitdiff
Fixed array comparation
authorXinchen Hui <laruence@gmail.com>
Tue, 25 Feb 2014 04:31:35 +0000 (12:31 +0800)
committerXinchen Hui <laruence@gmail.com>
Tue, 25 Feb 2014 04:31:35 +0000 (12:31 +0800)
Zend/zend_operators.c

index 7e77d976fba5228e56bd7b1d335a72fc9dd3b0d6..9b46ae4456304c59d1bef905e56b07424dcb6996 100644 (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);