cvs: ZendEngine2(PHP_5_2) / zend.c
| From: | Sara Golemon | Date: | Thu, 05 Oct 2006 23:32:52 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_2) / zend.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5309@lists.php.net to get a copy of this message | ||
pollita Thu Oct 5 23:32:52 2006 UTC
Modified files: (Branch: PHP_5_2)
/ZendEngine2 zend.c
Log:
MFH(r-1.376): Preserve EG(return_value_ptr_ptr) when calling zend_execute_scripts()
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend.c?r1=1.308.2.12.2.18&r2=1.308.2.12.2.19&diff_format=u
Index: ZendEngine2/zend.c
diff -u ZendEngine2/zend.c:1.308.2.12.2.18 ZendEngine2/zend.c:1.308.2.12.2.19
--- ZendEngine2/zend.c:1.308.2.12.2.18 Mon Sep 11 14:30:08 2006
+++ ZendEngine2/zend.c Thu Oct 5 23:32:52 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend.c,v 1.308.2.12.2.18 2006/09/11 14:30:08 tony2001 Exp $ */
+/* $Id: zend.c,v 1.308.2.12.2.19 2006/10/05 23:32:52 pollita Exp $ */
#include "zend.h"
#include "zend_extensions.h"
@@ -1077,6 +1077,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);
@@ -1139,11 +1140,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;
}