We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f34afc commit 460bbc8Copy full SHA for 460bbc8
Zend/zend_compile.c
@@ -3487,6 +3487,9 @@ static uint32_t zend_compile_args(
3487
if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
3488
opcode = ZEND_SEND_VAR_NO_REF;
3489
} else if (ARG_MAY_BE_SENT_BY_REF(fbc, arg_num)) {
3490
+ /* For IS_VAR operands, SEND_VAL will pass through the operand without
3491
+ * dereferencing, so it will use a by-ref pass if the call returned by-ref
3492
+ * and a by-value pass if it returned by-value. */
3493
opcode = ZEND_SEND_VAL;
3494
} else {
3495
opcode = ZEND_SEND_VAR;
0 commit comments