Skip to content

Commit 251745c

Browse files
committed
Fixed segfault while running with moodle
1 parent 88f2321 commit 251745c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/block_pass.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ static inline void del_source(zend_code_block *from, zend_code_block *to)
381381
return;
382382
}
383383

384-
if (to->sources->next == NULL) {
384+
if (!to->protected && to->sources->next == NULL) {
385385
/* source to only one block */
386386
zend_code_block *from_block = to->sources->from;
387387

0 commit comments

Comments
 (0)