]> granicus.if.org Git - php/commitdiff
Fixed bug #39140 (Uncaught exception may cause crash)
authorDmitry Stogov <dmitry@php.net>
Mon, 16 Oct 2006 11:13:08 +0000 (11:13 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 16 Oct 2006 11:13:08 +0000 (11:13 +0000)
NEWS
Zend/zend.c

diff --git a/NEWS b/NEWS
index 01b5ee57fbe6d6b19304ed13ee501f8f25823114..c52076b0e6e8dacc43d98e4470ace4d1f1b7000e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ PHP                                                                        NEWS
 12 Oct 2006, PHP 5.2.0RC6
 - Fixed invalid read in imagecreatefrompng when an empty file is given
   (Pierre, Tony)
+- Fixed bug #39140 (Uncaught exception may cause crash). (Dmitry)
 - Fixed bug #39020 (PHP in FastCGI server mode crashes). (Dmitry)
 - Fixed bug #38458, PECL bug #8944, PECL bug #7775 (error retrieving
   columns after long/text columns with PDO_ODBC). (Wez)
index e23005b739a22534bb22b24b2a8dd3b92fdf01ac..b9fe854aa95ee10bf5b32291462dac05d2836d05 100644 (file)
@@ -1097,6 +1097,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) {
                                        strncpy(ex_class_name, Z_OBJ_CLASS_NAME_P(EG(exception)), 127);
                                        ex_class_name[127] = '\0';