Skip to content

Commit 8491949

Browse files
committed
Simplify condition
1 parent 448ce15 commit 8491949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3850,7 +3850,7 @@ static uint32_t zend_compile_args(
38503850
/* Treat passing of $GLOBALS the same as passing a call.
38513851
* This will error at runtime if the argument is by-ref. */
38523852
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))
3853+
uint32_t type = is_globals_fetch(arg) || (fbc && !ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num))
38543854
? BP_VAR_R : BP_VAR_FUNC_ARG;
38553855
zend_compile_var(&arg_node, arg, type, false);
38563856
if (arg_node.op_type & (IS_CONST|IS_TMP_VAR)) {

0 commit comments

Comments
 (0)