mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
Also register the get_iterator handler for Max/Min Heap
This commit is contained in:
parent
dac1a1014d
commit
72f61bfc4f
1 changed files with 3 additions and 0 deletions
|
@ -1183,6 +1183,9 @@ PHP_MINIT_FUNCTION(spl_heap) /* {{{ */
|
|||
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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue