diff options
author | Zeev Suraski <zeev@php.net> | 1999-07-24 11:43:21 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-07-24 11:43:21 +0000 |
commit | 9c754da0fcec0ca1c466618e4605c69d24745350 (patch) | |
tree | 0d071b4fa656df2f91ea33a9667c982c7e3f1548 /Zend/zend_stack.h | |
parent | 1b6fae101a3903f57e9b990c15a890b24497b131 (diff) | |
download | php-git-9c754da0fcec0ca1c466618e4605c69d24745350.tar.gz |
Fix RETURN & SWITCH memory leak issue
Diffstat (limited to 'Zend/zend_stack.h')
-rw-r--r-- | Zend/zend_stack.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_stack.h b/Zend/zend_stack.h index 520f010924..5e084fd74f 100644 --- a/Zend/zend_stack.h +++ b/Zend/zend_stack.h @@ -38,6 +38,10 @@ ZEND_API int zend_stack_is_empty(zend_stack *stack); ZEND_API int zend_stack_destroy(zend_stack *stack); ZEND_API void **zend_stack_base(zend_stack *stack); ZEND_API int zend_stack_count(zend_stack *stack); +ZEND_API void zend_stack_apply(zend_stack *stack, void (*apply_function)(void *element), int type); +ZEND_API void zend_stack_apply_with_argument(zend_stack *stack, void (*apply_function)(void *element, void *arg), int type, void *arg); +#define ZEND_STACK_APPLY_TOPDOWN 1 +#define ZEND_STACK_APPLY_BOTTOMUP 2 #endif /* _ZEND_STACK_H */ |