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); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php