diff options
author | Nikita Popov <nikic@php.net> | 2012-09-22 19:12:21 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2012-09-22 19:15:53 +0200 |
commit | a31fa55b44bcb342c00e9ab2f4a851d054897a39 (patch) | |
tree | c1dfe040f3d51b7ab97d16094772d0b24e170f3f /Zend/zend_ptr_stack.h | |
parent | 6c135dff975f111ec5a84af93c1b98e9ae84fcd1 (diff) | |
download | php-git-a31fa55b44bcb342c00e9ab2f4a851d054897a39.tar.gz |
Fixed bug #63132
EG(arg_types_stack) is now also backed up when generators are used. This
allows the use of yield in nested method calls.
This commit adds two new functions to the zend_ptr_stack API:
zend_ptr_stack_push_from_memory
zend_ptr_stack_pop_into_memory
both taking the following arguments:
zend_ptr_stack *stack, int count, void **pointers
Diffstat (limited to 'Zend/zend_ptr_stack.h')
-rw-r--r-- | Zend/zend_ptr_stack.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_ptr_stack.h b/Zend/zend_ptr_stack.h index 9f6fc13161..fe93e93b5a 100644 --- a/Zend/zend_ptr_stack.h +++ b/Zend/zend_ptr_stack.h @@ -41,6 +41,8 @@ ZEND_API void zend_ptr_stack_destroy(zend_ptr_stack *stack); ZEND_API void zend_ptr_stack_apply(zend_ptr_stack *stack, void (*func)(void *)); ZEND_API void zend_ptr_stack_clean(zend_ptr_stack *stack, void (*func)(void *), zend_bool free_elements); ZEND_API int zend_ptr_stack_num_elements(zend_ptr_stack *stack); +ZEND_API void zend_ptr_stack_push_from_memory(zend_ptr_stack *stack, int count, void **pointers); +ZEND_API void zend_ptr_stack_pop_into_memory(zend_ptr_stack *stack, int count, void **pointers); END_EXTERN_C() #define ZEND_PTR_STACK_RESIZE_IF_NEEDED(stack, count) \ |