cvs: ZendEngine2 / zend.c

From: Date: Thu, 05 Oct 2006 23:24:56 +0000
Subject: cvs: ZendEngine2 / zend.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5308@lists.php.net to get a copy of this message
pollita Thu Oct 5 23:24:56 2006 UTC Modified files: /ZendEngine2 zend.c Log: Preserve EG(return_value_ptr_ptr) when calling zend_execute_scripts() http://cvs.php.net/viewvc.cgi/ZendEngine2/zend.c?r1=1.375&r2=1.376&diff_format=u Index: ZendEngine2/zend.c diff -u ZendEngine2/zend.c:1.375 ZendEngine2/zend.c:1.376 --- ZendEngine2/zend.c:1.375 Thu Oct 5 22:45:34 2006 +++ ZendEngine2/zend.c Thu Oct 5 23:24:55 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.c,v 1.375 2006/10/05 22:45:34 andrei Exp $ */ +/* $Id: zend.c,v 1.376 2006/10/05 23:24:55 pollita Exp $ */ #include "zend.h" #include "zend_extensions.h" @@ -1596,6 +1596,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); @@ -1659,11 +1660,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 (#5308) next »