cvs: php-src /ext/spl spl_heap.c
| From: | David Coallier | Date: | Sat, 22 Nov 2008 14:18:15 +0000 |
| Subject: | cvs: php-src /ext/spl spl_heap.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-54407@lists.php.net to get a copy of this message | ||
davidc Sat Nov 22 14:18:15 2008 UTC
Modified files:
/php-src/ext/spl spl_heap.c
Log:
- Return the key - 1
- Bug #46615
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_heap.c?r1=1.12&r2=1.13&diff_format=u
Index: php-src/ext/spl/spl_heap.c
diff -u php-src/ext/spl/spl_heap.c:1.12 php-src/ext/spl/spl_heap.c:1.13
--- php-src/ext/spl/spl_heap.c:1.12 Mon Nov 17 11:26:24 2008
+++ php-src/ext/spl/spl_heap.c Sat Nov 22 14:18:15 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_heap.c,v 1.12 2008/11/17 11:26:24 felipe Exp $ */
+/* $Id: spl_heap.c,v 1.13 2008/11/22 14:18:15 davidc Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -987,7 +987,7 @@
{
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);
}
/* }}} */