From: David Coallier Date: Sat, 22 Nov 2008 14:18:15 +0000 (+0000) Subject: - Return the key - 1 X-Git-Tag: BEFORE_HEAD_NS_CHANGES_MERGE~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3a0dbe923c83b088af548a73293e9fa22ece833;p=php - Return the key - 1 - Bug #46615 --- 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); } /* }}} */