com php-src: Fixed passing reference by value in call_user_ func(): Zend/zend_execute_API.c
| From: | Dmitry Stogov | Date: | Wed, 05 Mar 2014 21:04:28 +0000 |
| Subject: | com php-src: Fixed passing reference by value in call_user_ func(): Zend/zend_execute_API.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77720@lists.php.net to get a copy of this message | ||
Commit: f3b4b1688314caa6f3dc32ef6aa796642c408d1f
Author: Dmitry Stogov <dmitry@zend.com> Thu, 6 Mar 2014 01:04:28 +0400
Parents: 9ebd9388ee4930902ea3d36683e971be926f7cad
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f3b4b1688314caa6f3dc32ef6aa796642c408d1f
Log:
Fixed passing reference by value in call_user_func()
Changed paths:
M Zend/zend_execute_API.c
Diff:
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 02030ff..fb214db 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -868,7 +868,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
/* don't separate references for __call */
(EX(function_state).function->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) == 0
) {
param = &tmp;
- ZVAL_DUP(param, &fci->params[i]);
+ ZVAL_DUP(param, Z_REFVAL(fci->params[i]));
} else {
param = &tmp;
ZVAL_COPY(param, &fci->params[i]);