cvs: ZendEngine2(PHP_5_2) / zend.c
| From: | Sara Golemon | Date: | Fri, 06 Oct 2006 16:50:21 +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-5314@lists.php.net to get a copy of this message | ||
pollita Fri Oct 6 16:50:21 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()
Reapplying this since it looks like we'll be doing a PHP 5.2 RC6 after all
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend.c?r1=1.308.2.12.2.20&r2=1.308.2.12.2.21&diff_format=u
Index: ZendEngine2/zend.c
diff -u ZendEngine2/zend.c:1.308.2.12.2.20 ZendEngine2/zend.c:1.308.2.12.2.21
--- ZendEngine2/zend.c:1.308.2.12.2.20 Fri Oct 6 00:02:56 2006
+++ ZendEngine2/zend.c Fri Oct 6 16:50:21 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend.c,v 1.308.2.12.2.20 2006/10/06 00:02:56 pollita Exp $ */
+/* $Id: zend.c,v 1.308.2.12.2.21 2006/10/06 16:50:21 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;
}