From 0d7d1b7ffa27b1b259c7749e0aec78276ecb6ba3 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 16 Oct 2006 11:13:20 +0000 Subject: [PATCH] Fixed bug #39140 (Uncaught exception may cause crash) --- Zend/zend.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.50.1