From 8f44d2ca36acd9bcd465ab56022c2ce2a8ab616e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Andr=C3=A9=20dos=20Santos=20Lopes?= Date: Tue, 21 Dec 2010 19:52:17 +0000 Subject: - Revert of revision 306542, turns out the semantics of compare() are different in SplMinHeap and SplMaxHeap. --- ext/spl/spl_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/spl/spl_heap.c') diff --git a/ext/spl/spl_heap.c b/ext/spl/spl_heap.c index 52f2008cdb..f729478388 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 *)b, (zval *)a, &lval TSRMLS_CC) == FAILURE) { + if (spl_ptr_heap_cmp_cb_helper((zval *)object, heap_object, (zval *)a, (zval *)b, &lval TSRMLS_CC) == FAILURE) { /* exception or call failure */ return 0; } -- cgit v1.2.1