Skip to content

Commit 0547edb

Browse files
committed
Fixed bug (try block removed while combined with xdebug)
1 parent 16b6f6c commit 0547edb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
(Ashesh Vashi)
5959

6060
- Opcache:
61+
. Fixed bug (try block removed while combined with xdebug). (Laruence)
6162
. Fixed bug #68644 (strlen incorrect : mbstring + func_overload=2 +UTF-8
6263
+ Opcache). (Laruence)
6364
. Fixed bug #67111 (Memory leak when using "continue 2" inside two foreach

ext/opcache/Optimizer/block_pass.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ static void zend_jmp_optimization(zend_code_block *block, zend_op_array *op_arra
15781578
}
15791579

15801580
/* next block is only NOP's */
1581-
if (target == target_end) {
1581+
if (target == target_end && ! block->follow_to->protected) {
15821582
del_source(block, block->follow_to);
15831583
block->follow_to = block->follow_to->follow_to;
15841584
ADD_SOURCE(block, block->follow_to);

0 commit comments

Comments
 (0)