Skip to content

Commit 7676090

Browse files
committed
Fixed bug #77287
There may be an EXT_NOP opcode before the parameter list, we should skip over it.
1 parent 6a0a600 commit 7676090

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ PHP NEWS
6161
(Nikita)
6262
. Fixed bug #77361 (configure fails on 64-bit AIX when opcache enabled).
6363
(Kevin Adler)
64+
. Fixed bug #77287 (Opcache literal compaction is incompatible with EXT
65+
opcodes). (Nikita)
6466

6567
- PCRE:
6668
. Fixed bug #77338 (get_browser with empty string). (Nikita)

ext/opcache/Optimizer/compact_literals.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ void zend_optimizer_compact_literals(zend_op_array *op_array, zend_optimizer_ctx
810810
Z_CACHE_SLOT_P(val) = op_array->cache_size;
811811
op_array->cache_size += sizeof(zval);
812812
}
813-
} else if (opline->opcode != ZEND_RECV) {
813+
} else if (opline->opcode != ZEND_RECV && opline->opcode != ZEND_EXT_NOP) {
814814
break;
815815
}
816816
opline++;

0 commit comments

Comments
 (0)