colder Sat May 24 14:37:53 2008 UTC
Modified files:
/php-src/ext/spl spl_heap.c
Log:
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.5&r2=1.6&diff_format=u
Index: php-src/ext/spl/spl_heap.c
diff -u php-src/ext/spl/spl_heap.c:1.5 php-src/ext/spl/spl_heap.c:1.6
--- php-src/ext/spl/spl_heap.c:1.5 Tue May 20 12:04:37 2008
+++ php-src/ext/spl/spl_heap.c Sat May 24 14:37:53 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_heap.c,v 1.5 2008/05/20 12:04:37 tony2001 Exp $ */
+/* $Id: spl_heap.c,v 1.6 2008/05/24 14:37:53 colder Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -1183,6 +1183,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