summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDavid Coallier <davidc@php.net>2008-11-22 14:18:15 +0000
committerDavid Coallier <davidc@php.net>2008-11-22 14:18:15 +0000
commita3a0dbe923c83b088af548a73293e9fa22ece833 (patch)
tree68ffecc963a59c7935d996a395adc670d72abe9d /ext
parent84020c15603f5d35007d32db7e7e1024de87663d (diff)
downloadphp-git-a3a0dbe923c83b088af548a73293e9fa22ece833.tar.gz
- Return the key - 1
- Bug #46615
Diffstat (limited to 'ext')
-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 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);
}
/* }}} */