summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2002-08-28 14:43:32 +0000
committerThies C. Arntzen <thies@php.net>2002-08-28 14:43:32 +0000
commitbdc35c9f2e3fe22cb88c1997d674ea6f67ad1b09 (patch)
tree42093a0d715de9820e71d6cc5eed1f1678c0352b /Zend/zend.c
parenta235002eebe413a89cc1992a7f9f5ab51532eefe (diff)
downloadphp-git-bdc35c9f2e3fe22cb88c1997d674ea6f67ad1b09.tar.gz
clear current_execute_data on bailout as it would point into some freed area
on the stack.
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c1
1 files changed, 1 insertions, 0 deletions
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()