]> 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:20 +0000 (11:13 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 16 Oct 2006 11:13:20 +0000 (11:13 +0000)
Zend/zend.c

index e44d1f4f3aad70eaaa12965bd4a4fafaa030f1a6..e12a8aa268fe9f683e1864b4b88f6fff81a91881 100644 (file)
@@ -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);