diff options
author | Stanislav Malyshev <stas@php.net> | 2000-07-11 13:23:48 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2000-07-11 13:23:48 +0000 |
commit | 148317f979327bb038ca831d7e481d49503965ed (patch) | |
tree | 51bf6b88e0fab4754e2682436279e4c876571a10 | |
parent | 45c024c7dc5fe1d80fdcf6bbdb49a81132b7de20 (diff) | |
download | php-git-148317f979327bb038ca831d7e481d49503965ed.tar.gz |
Fix a bug in passing second parameter of RECV_INIT with is_ref set
-rw-r--r-- | Zend/zend_execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 40b2480fb3..6d48394c56 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1793,7 +1793,7 @@ send_by_ref: assignment_value = *param; } - if (PZVAL_IS_REF(assignment_value)) { + if (PZVAL_IS_REF(assignment_value) && param) { zend_assign_to_variable_reference(NULL, get_zval_ptr_ptr(&opline->result, Ts, BP_VAR_W), param, NULL ELS_CC); } else { zend_assign_to_variable(NULL, &opline->result, NULL, assignment_value, IS_VAR, Ts ELS_CC); |