From a3a0dbe923c83b088af548a73293e9fa22ece833 Mon Sep 17 00:00:00 2001 From: David Coallier Date: Sat, 22 Nov 2008 14:18:15 +0000 Subject: [PATCH] - Return the key - 1 - Bug #46615 --- ext/spl/spl_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/spl/spl_heap.c b/ext/spl/spl_heap.c index d7a5652ede..6fb7039444 100644 --- a/ext/spl/spl_heap.c +++ b/ext/spl/spl_heap.c @@ -987,7 +987,7 @@ SPL_METHOD(SplHeap, key) { spl_heap_object *intern = (spl_heap_object*)zend_object_store_get_object(getThis() TSRMLS_CC); - RETURN_LONG(intern->heap->count); + RETURN_LONG(intern->heap->count - 1); } /* }}} */ -- 2.40.0