From: Dmitry Stogov Date: Mon, 16 Oct 2006 11:13:20 +0000 (+0000) Subject: Fixed bug #39140 (Uncaught exception may cause crash) X-Git-Tag: RELEASE_1_0_0RC1~1279 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d7d1b7ffa27b1b259c7749e0aec78276ecb6ba3;p=php Fixed bug #39140 (Uncaught exception may cause crash) --- diff --git a/Zend/zend.c b/Zend/zend.c index e44d1f4f3a..e12a8aa268 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -1616,6 +1616,8 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co zend_execute(EG(active_op_array) TSRMLS_CC); if (EG(exception)) { char ex_class_name[128]; + + EG(opline_ptr) = NULL; if (Z_TYPE_P(EG(exception)) == IS_OBJECT) { /* CHECK ME: why strings only */ strncpy(ex_class_name, Z_OBJ_CLASS_NAME_P(EG(exception)).s, 127);