summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/opcache/Optimizer/block_pass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/Optimizer/block_pass.c b/ext/opcache/Optimizer/block_pass.c
index 3f30ef53c4..7948990f81 100644
--- a/ext/opcache/Optimizer/block_pass.c
+++ b/ext/opcache/Optimizer/block_pass.c
@@ -384,7 +384,7 @@ static inline void del_source(zend_code_block *from, zend_code_block *to)
return;
}
- if (to->sources->next == NULL) {
+ if (!to->protected && to->sources->next == NULL) {
/* source to only one block */
zend_code_block *from_block = to->sources->from;