]> granicus.if.org Git - php/commitdiff
- Fix problem with exceptions returning from include(). (Dmitry)
authorAndi Gutmans <andi@php.net>
Thu, 27 May 2004 11:59:58 +0000 (11:59 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 27 May 2004 11:59:58 +0000 (11:59 +0000)
Zend/zend_execute.c

index 9dcfad533cf4f91a4350ffa055d37730d9178255..e16fb8600a5324087475ec5ccde4ca58904b2084 100644 (file)
@@ -3574,6 +3574,9 @@ int zend_include_or_eval_handler(ZEND_OPCODE_HANDLER_ARGS)
                EG(function_state_ptr) = &EX(function_state);
                destroy_op_array(new_op_array TSRMLS_CC);
                efree(new_op_array);
+               if (EG(exception)) {
+                       zend_throw_exception_internal(NULL TSRMLS_CC);
+               }
        } else {
                if (return_value_used) {
                        ALLOC_ZVAL(EX_T(opline->result.u.var).var.ptr);