Skip to content

Commit 8c7aa88

Browse files
committed
Fixed crash introduced by bfaf662
1 parent bc53642 commit 8c7aa88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/Optimizer/block_pass.c

+4
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ static void strip_nops(zend_op_array *op_array, zend_basic_block *b)
119119
strip_leading_nops(op_array, b);
120120
}
121121

122+
if (b->len == 0) {
123+
return;
124+
}
125+
122126
/* strip the inside NOPs */
123127
i = j = b->start + 1;
124128
while (i < b->start + b->len) {

0 commit comments

Comments
 (0)