]> granicus.if.org Git - php/commitdiff
clear current_execute_data on bailout as it would point into some freed area
authorThies C. Arntzen <thies@php.net>
Wed, 28 Aug 2002 14:43:32 +0000 (14:43 +0000)
committerThies C. Arntzen <thies@php.net>
Wed, 28 Aug 2002 14:43:32 +0000 (14:43 +0000)
on the stack.

Zend/zend.c

index ad4686f962000942d936c9a622ff05422bfead9c..87ed88ea5cd12cfff423f25c8efa65de88e387e4 100644 (file)
@@ -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()