From: Thies C. Arntzen Date: Wed, 28 Aug 2002 14:43:32 +0000 (+0000) Subject: clear current_execute_data on bailout as it would point into some freed area X-Git-Tag: RELEASE_0_91~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdc35c9f2e3fe22cb88c1997d674ea6f67ad1b09;p=php clear current_execute_data on bailout as it would point into some freed area on the stack. --- diff --git a/Zend/zend.c b/Zend/zend.c index ad4686f962..87ed88ea5c 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -549,6 +549,7 @@ ZEND_API void _zend_bailout(char *filename, uint lineno) } CG(unclean_shutdown) = 1; CG(in_compilation) = EG(in_execution) = 0; + EG(current_execute_data) = NULL; longjmp(EG(bailout), FAILURE); } END_EXTERN_C()