cvs: Zend(PHP_4_4) / zend.c

From: Date: Thu, 05 Oct 2006 23:34:28 +0000
Subject: cvs: Zend(PHP_4_4) / zend.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5310@lists.php.net to get a copy of this message
pollita Thu Oct 5 23:34:28 2006 UTC Modified files: (Branch: PHP_4_4) /Zend zend.c Log: MFH(r-1.376): Preserve EG(return_value_ptr_ptr) when calling zend_execute_scripts() http://cvs.php.net/viewvc.cgi/Zend/zend.c?r1=1.162.2.26.2.3&r2=1.162.2.26.2.4&diff_format=u Index: Zend/zend.c diff -u Zend/zend.c:1.162.2.26.2.3 Zend/zend.c:1.162.2.26.2.4 --- Zend/zend.c:1.162.2.26.2.3 Sun Jan 1 13:46:49 2006 +++ Zend/zend.c Thu Oct 5 23:34:28 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.c,v 1.162.2.26.2.3 2006/01/01 13:46:49 sniper Exp $ */ +/* $Id: zend.c,v 1.162.2.26.2.4 2006/10/05 23:34:28 pollita Exp $ */ #include "zend.h" #include "zend_extensions.h" @@ -919,6 +919,7 @@ int i; zend_file_handle *file_handle; zend_op_array *orig_op_array = EG(active_op_array); + zval **orig_retval_ptr_ptr = EG(return_value_ptr_ptr); zval *local_retval=NULL; va_start(files, file_count); @@ -941,11 +942,13 @@ } else if (type==ZEND_REQUIRE) { va_end(files); EG(active_op_array) = orig_op_array; + EG(return_value_ptr_ptr) = orig_retval_ptr_ptr; return FAILURE; } } va_end(files); EG(active_op_array) = orig_op_array; + EG(return_value_ptr_ptr) = orig_retval_ptr_ptr; return SUCCESS; }

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