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
# Should the LICENSE and Zend/LICENSE dates be updated too?
There seems to be no reason for stack->top in the ptr_stack except for when realloc()'in the stack. I think I'll remove it.
Prepatch tagged as BEFORE_STACK_PATCH.