summaryrefslogtreecommitdiff
path: root/ext/spl/spl_heap.c
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2010-12-21 17:29:14 +0000
committerGustavo André dos Santos Lopes <cataphract@php.net>2010-12-21 17:29:14 +0000
commite427e312d4942566e42114d7098661f8a6062cd3 (patch)
tree051447175337456edd0233f92afecd08f70cb99e /ext/spl/spl_heap.c
parent399182de3faf4b39976f0b79f1c7673b2535d3d1 (diff)
downloadphp-git-e427e312d4942566e42114d7098661f8a6062cd3.tar.gz
- Fixed bug #53588 (SplMinHeap bad sorting with custom compare
function).
Diffstat (limited to 'ext/spl/spl_heap.c')
-rw-r--r--ext/spl/spl_heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_heap.c b/ext/spl/spl_heap.c
index f729478388..52f2008cdb 100644
--- a/ext/spl/spl_heap.c
+++ b/ext/spl/spl_heap.c
@@ -176,7 +176,7 @@ static int spl_ptr_heap_zval_min_cmp(spl_ptr_heap_element a, spl_ptr_heap_elemen
spl_heap_object *heap_object = (spl_heap_object*)zend_object_store_get_object((zval *)object TSRMLS_CC);
if (heap_object->fptr_cmp) {
long lval = 0;
- if (spl_ptr_heap_cmp_cb_helper((zval *)object, heap_object, (zval *)a, (zval *)b, &lval TSRMLS_CC) == FAILURE) {
+ if (spl_ptr_heap_cmp_cb_helper((zval *)object, heap_object, (zval *)b, (zval *)a, &lval TSRMLS_CC) == FAILURE) {
/* exception or call failure */
return 0;
}