diff options
| author | David Coallier <davidc@php.net> | 2008-11-22 14:18:15 +0000 |
|---|---|---|
| committer | David Coallier <davidc@php.net> | 2008-11-22 14:18:15 +0000 |
| commit | a3a0dbe923c83b088af548a73293e9fa22ece833 (patch) | |
| tree | 68ffecc963a59c7935d996a395adc670d72abe9d /ext | |
| parent | 84020c15603f5d35007d32db7e7e1024de87663d (diff) | |
| download | php-git-a3a0dbe923c83b088af548a73293e9fa22ece833.tar.gz | |
- Return the key - 1
- Bug #46615
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/spl/spl_heap.c | 2 |
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); } /* }}} */ |
