cvs: ZendEngine2(PHP_5_2) / zend.c zend_execute_API.c zend_globals.h

From: Date: Mon, 11 Sep 2006 14:30:09 +0000
Subject: cvs: ZendEngine2(PHP_5_2) / zend.c zend_execute_API.c zend_globals.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5244@lists.php.net to get a copy of this message
tony2001 Mon Sep 11 14:30:09 2006 UTC Modified files: (Branch: PHP_5_2) /ZendEngine2 zend_globals.h zend_execute_API.c zend.c Log: MFH: fix #38779 (engine crashes when require()'ing file with syntax error through userspace stream wrapper) http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_globals.h?r1=1.141.2.3.2.5&r2=1.141.2.3.2.6&diff_format=u Index: ZendEngine2/zend_globals.h diff -u ZendEngine2/zend_globals.h:1.141.2.3.2.5 ZendEngine2/zend_globals.h:1.141.2.3.2.6 --- ZendEngine2/zend_globals.h:1.141.2.3.2.5 Tue Jul 18 09:06:33 2006 +++ ZendEngine2/zend_globals.h Mon Sep 11 14:30:03 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_globals.h,v 1.141.2.3.2.5 2006/07/18 09:06:33 dmitry Exp $ */ +/* $Id: zend_globals.h,v 1.141.2.3.2.6 2006/09/11 14:30:03 tony2001 Exp $ */ #ifndef ZEND_GLOBALS_H #define ZEND_GLOBALS_H @@ -237,6 +237,8 @@ zend_property_info std_property_info; + zend_bool active; + void *reserved[ZEND_MAX_RESERVED_RESOURCES]; }; http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute_API.c?r1=1.331.2.20.2.5&r2=1.331.2.20.2.6&diff_format=u Index: ZendEngine2/zend_execute_API.c diff -u ZendEngine2/zend_execute_API.c:1.331.2.20.2.5 ZendEngine2/zend_execute_API.c:1.331.2.20.2.6 --- ZendEngine2/zend_execute_API.c:1.331.2.20.2.5 Wed Jul 12 07:54:00 2006 +++ ZendEngine2/zend_execute_API.c Mon Sep 11 14:30:04 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute_API.c,v 1.331.2.20.2.5 2006/07/12 07:54:00 dmitry Exp $ */ +/* $Id: zend_execute_API.c,v 1.331.2.20.2.6 2006/09/11 14:30:04 tony2001 Exp $ */ #include <stdio.h> #include <signal.h> @@ -188,6 +188,8 @@ EG(scope) = NULL; EG(This) = NULL; + + EG(active) = 1; } static int zval_call_destructor(zval **zv TSRMLS_DC) @@ -316,6 +318,7 @@ FREE_HASHTABLE(EG(in_autoload)); } } zend_end_try(); + EG(active) = 0; } @@ -613,6 +616,10 @@ char *fname, *colon; int fname_len; + if (!EG(active)) { + return FAILURE; /* executor is already inactive */ + } + if (EG(exception)) { return FAILURE; /* we would result in an instable executor otherwise */ } http://cvs.php.net/viewvc.cgi/ZendEngine2/zend.c?r1=1.308.2.12.2.17&r2=1.308.2.12.2.18&diff_format=u Index: ZendEngine2/zend.c diff -u ZendEngine2/zend.c:1.308.2.12.2.17 ZendEngine2/zend.c:1.308.2.12.2.18 --- ZendEngine2/zend.c:1.308.2.12.2.17 Sat Aug 19 16:20:08 2006 +++ ZendEngine2/zend.c Mon Sep 11 14:30:08 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.c,v 1.308.2.12.2.17 2006/08/19 16:20:08 iliaa Exp $ */ +/* $Id: zend.c,v 1.308.2.12.2.18 2006/09/11 14:30:08 tony2001 Exp $ */ #include "zend.h" #include "zend_extensions.h" @@ -503,6 +503,7 @@ EG(current_execute_data) = NULL; EG(current_module) = NULL; EG(exit_status) = 0; + EG(active) = 0; }

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