Skip to content

Commit 722a59d

Browse files
committed
SCCP doesn't support VERIFY_RETURN_TYPE (ext/opcache/tests/bug73789.phpt failure)
1 parent 7084fad commit 722a59d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/Optimizer/sccp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ static zend_bool can_replace_op1(
203203
return !(opline->extended_value & ZEND_ARRAY_ELEMENT_REF);
204204
case ZEND_YIELD:
205205
return !(op_array->fn_flags & ZEND_ACC_RETURN_REFERENCE);
206+
case ZEND_VERIFY_RETURN_TYPE:
207+
// TODO: This would require a non-local change ???
208+
return 0;
206209
default:
207210
if (ssa_op->op1_def != -1) {
208211
ZEND_ASSERT(0);

0 commit comments

Comments
 (0)