Skip to content

Commit f3b4b16

Browse files
committed
Fixed passing reference by value in call_user_func()
1 parent 9ebd938 commit f3b4b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_execute_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
868868
/* don't separate references for __call */
869869
(EX(function_state).function->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) == 0 ) {
870870
param = &tmp;
871-
ZVAL_DUP(param, &fci->params[i]);
871+
ZVAL_DUP(param, Z_REFVAL(fci->params[i]));
872872
} else {
873873
param = &tmp;
874874
ZVAL_COPY(param, &fci->params[i]);

0 commit comments

Comments
 (0)