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 fe7457a commit 4124ec8Copy full SHA for 4124ec8
Zend/Optimizer/zend_dfg.c
@@ -152,7 +152,6 @@ static zend_always_inline void _zend_dfg_add_use_def_op(const zend_op_array *op_
152
case ZEND_BIND_STATIC:
153
case ZEND_SEND_VAR_NO_REF:
154
case ZEND_SEND_VAR_NO_REF_EX:
155
- case ZEND_SEND_VAR:
156
case ZEND_SEND_VAR_EX:
157
case ZEND_SEND_FUNC_ARG:
158
case ZEND_SEND_REF:
@@ -174,6 +173,11 @@ static zend_always_inline void _zend_dfg_add_use_def_op(const zend_op_array *op_
174
173
goto add_op1_def;
175
}
176
break;
+ case ZEND_SEND_VAR:
177
+ if (opline->op1_type == IS_CV && ((build_flags & ZEND_SSA_RC_INFERENCE) || opline->op2_type == IS_UNUSED)) {
178
+ goto add_op1_def;
179
+ }
180
+ break;
181
case ZEND_CAST:
182
case ZEND_QM_ASSIGN:
183
case ZEND_JMP_SET:
0 commit comments