diff options
| author | Etienne Kneuss <colder@php.net> | 2008-02-25 23:39:08 +0000 |
|---|---|---|
| committer | Etienne Kneuss <colder@php.net> | 2008-02-25 23:39:08 +0000 |
| commit | c54045a1f949afbf4ceeda21aedd3bdb98665b10 (patch) | |
| tree | 46ec1212e9e70ff2ae720fdac59213025360672d /ext/spl/php_spl.c | |
| parent | de52173257235942fc599924a5b0817fd6fcd180 (diff) | |
| download | php-git-c54045a1f949afbf4ceeda21aedd3bdb98665b10.tar.gz | |
MFH: SplHeap, SplMinHeap, SplMaxHeap, SplPriorityQueue implementation
Diffstat (limited to 'ext/spl/php_spl.c')
| -rwxr-xr-x | ext/spl/php_spl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index d6122d3f15..9e663e7b8c 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -36,6 +36,7 @@ #include "spl_exceptions.h" #include "spl_observer.h" #include "spl_dllist.h" +#include "spl_heap.h" #include "zend_exceptions.h" #include "zend_interfaces.h" #include "ext/standard/md5.h" @@ -157,6 +158,10 @@ PHP_FUNCTION(class_implements) SPL_ADD_CLASS(SplDoublyLinkedList, z_list, sub, allow, ce_flags); \ SPL_ADD_CLASS(SplQueue, z_list, sub, allow, ce_flags); \ SPL_ADD_CLASS(SplStack, z_list, sub, allow, ce_flags); \ + SPL_ADD_CLASS(SplHeap, z_list, sub, allow, ce_flags); \ + SPL_ADD_CLASS(SplMinHeap, z_list, sub, allow, ce_flags); \ + SPL_ADD_CLASS(SplMaxHeap, z_list, sub, allow, ce_flags); \ + SPL_ADD_CLASS(SplPriorityQueue, z_list, sub, allow, ce_flags); \ SPL_ADD_CLASS(BadFunctionCallException, z_list, sub, allow, ce_flags); \ SPL_ADD_CLASS(BadMethodCallException, z_list, sub, allow, ce_flags); \ SPL_ADD_CLASS(CachingIterator, z_list, sub, allow, ce_flags); \ @@ -749,6 +754,7 @@ PHP_MINIT_FUNCTION(spl) PHP_MINIT(spl_directory)(INIT_FUNC_ARGS_PASSTHRU); PHP_MINIT(spl_sxe)(INIT_FUNC_ARGS_PASSTHRU); PHP_MINIT(spl_dllist)(INIT_FUNC_ARGS_PASSTHRU); + PHP_MINIT(spl_heap)(INIT_FUNC_ARGS_PASSTHRU); PHP_MINIT(spl_observer)(INIT_FUNC_ARGS_PASSTHRU); return SUCCESS; |
