colder Sat May 24 14:38:04 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/spl spl_heap.c
Log:
MFH: Also register the get_iterator handler for Max/Min Heap
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_heap.c?r1=1.1.2.4&r2=1.1.2.5&diff_format=u
Index: php-src/ext/spl/spl_heap.c
diff -u php-src/ext/spl/spl_heap.c:1.1.2.4 php-src/ext/spl/spl_heap.c:1.1.2.5
--- php-src/ext/spl/spl_heap.c:1.1.2.4 Fri Feb 29 09:26:01 2008
+++ php-src/ext/spl/spl_heap.c Sat May 24 14:38:04 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_heap.c,v 1.1.2.4 2008/02/29 09:26:01 colder Exp $ */
+/* $Id: spl_heap.c,v 1.1.2.5 2008/05/24 14:38:04 colder Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -1166,6 +1166,9 @@
REGISTER_SPL_SUB_CLASS_EX(SplMinHeap, SplHeap,
spl_heap_object_new, spl_funcs_SplMinHeap);
REGISTER_SPL_SUB_CLASS_EX(SplMaxHeap, SplHeap,
spl_heap_object_new, spl_funcs_SplMaxHeap);
+ spl_ce_SplMaxHeap->get_iterator = spl_heap_get_iterator;
+ spl_ce_SplMinHeap->get_iterator = spl_heap_get_iterator;
+
REGISTER_SPL_STD_CLASS_EX(SplPriorityQueue, spl_heap_object_new,
spl_funcs_SplPriorityQueue);
memcpy(&spl_handler_SplPriorityQueue, zend_get_std_object_handlers(),
sizeof(zend_object_handlers));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php