cvs: ZendEngine2(PHP_5_0) / zend_compile.c zend_execute_API.c php-src NEWS

From: Date: Thu, 24 Nov 2005 11:33:28 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_compile.c zend_execute_API.c php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4390@lists.php.net to get a copy of this message
dmitry Thu Nov 24 06:33:28 2005 EDT Modified files: (Branch: PHP_5_0) /php-src NEWS /ZendEngine2 zend_compile.c zend_execute_API.c Log: Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.521&r2=1.1760.2.522&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1760.2.521 php-src/NEWS:1.1760.2.522 --- php-src/NEWS:1.1760.2.521 Wed Nov 23 04:26:18 2005 +++ php-src/NEWS Thu Nov 24 06:33:26 2005 @@ -4,6 +4,8 @@ - Fixed an error in mysqli_fetch_fields (returned NULL instead of an array when row number > field_count). (Georg) - Renamed CachingRecursiveIterator to RecursiveCachingIterator. (Marcus) +- Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash). + (Dmitry) - Fixed bug #35273 (Error in mapping soap - java types). (Dmitry) - Fixed bug #35239 (Objects can lose references). (Dmitry) - Fixed bug #35229 (call_user_func() crashes when arguement_stack is nearly http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.567.2.32&r2=1.567.2.33&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.567.2.32 ZendEngine2/zend_compile.c:1.567.2.33 --- ZendEngine2/zend_compile.c:1.567.2.32 Wed Nov 23 04:26:20 2005 +++ ZendEngine2/zend_compile.c Thu Nov 24 06:33:27 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.567.2.32 2005/11/23 09:26:20 dmitry Exp $ */ +/* $Id: zend_compile.c,v 1.567.2.33 2005/11/24 11:33:27 dmitry Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -1586,12 +1586,14 @@ } else { CG(active_op_array)->opcodes[last_additional_catch->u.opline_num].op1.u.EA.type = 1; } + DEC_BPC(CG(active_op_array)); } void zend_do_try(znode *try_token TSRMLS_DC) { try_token->u.opline_num = zend_add_try_element(get_next_op_number(CG(active_op_array)) TSRMLS_CC); + INC_BPC(CG(active_op_array)); } http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.287.2.26&r2=1.287.2.27&ty=u Index: ZendEngine2/zend_execute_API.c diff -u ZendEngine2/zend_execute_API.c:1.287.2.26 ZendEngine2/zend_execute_API.c:1.287.2.27 --- ZendEngine2/zend_execute_API.c:1.287.2.26 Wed Nov 2 04:15:07 2005 +++ ZendEngine2/zend_execute_API.c Thu Nov 24 06:33:27 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute_API.c,v 1.287.2.26 2005/11/02 09:15:07 dmitry Exp $ */ +/* $Id: zend_execute_API.c,v 1.287.2.27 2005/11/24 11:33:27 dmitry Exp $ */ #include <stdio.h> #include <signal.h> @@ -1105,6 +1105,8 @@ INIT_ZVAL(ret_opline->op1.u.constant); SET_UNUSED(ret_opline->op2); + zend_do_handle_exception(TSRMLS_C); + if (!CG(active_op_array)->start_op) { CG(active_op_array)->start_op = CG(active_op_array)->opcodes; } @@ -1143,7 +1145,11 @@ zval_ptr_dtor(&local_retval); } - CG(active_op_array)->last--; /* get rid of that ZEND_RETURN */ + if (EG(exception)) { + zend_exception_error(EG(exception) TSRMLS_CC); + } + + CG(active_op_array)->last -= 2; /* get rid of that ZEND_RETURN and ZEND_HANDLE_EXCEPTION */ CG(active_op_array)->start_op = CG(active_op_array)->opcodes+CG(active_op_array)->last; }

« previous php.zend-engine.cvs (#4390) next »