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 448ce15 commit 8491949Copy full SHA for 8491949
Zend/zend_compile.c
@@ -3850,7 +3850,7 @@ static uint32_t zend_compile_args(
3850
/* Treat passing of $GLOBALS the same as passing a call.
3851
* This will error at runtime if the argument is by-ref. */
3852
if (zend_is_call(arg) || is_globals_fetch(arg)) {
3853
- uint32_t type = is_globals_fetch(arg) || (fbc && !ARG_MUST_BE_SENT_BY_REF(fbc, arg_num) && !ARG_MAY_BE_SENT_BY_REF(fbc, arg_num))
+ uint32_t type = is_globals_fetch(arg) || (fbc && !ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num))
3854
? BP_VAR_R : BP_VAR_FUNC_ARG;
3855
zend_compile_var(&arg_node, arg, type, false);
3856
if (arg_node.op_type & (IS_CONST|IS_TMP_VAR)) {
0 commit comments