Skip to content

Commit

Permalink
Fixed bug #77287
Browse files Browse the repository at this point in the history
There may be an EXT_NOP opcode before the parameter list, we should
skip over it.
  • Loading branch information
nikic committed Jan 22, 2019
1 parent 6a0a600 commit 7676090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -61,6 +61,8 @@ PHP NEWS
(Nikita)
. Fixed bug #77361 (configure fails on 64-bit AIX when opcache enabled).
(Kevin Adler)
. Fixed bug #77287 (Opcache literal compaction is incompatible with EXT
opcodes). (Nikita)

- PCRE:
. Fixed bug #77338 (get_browser with empty string). (Nikita)
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/Optimizer/compact_literals.c
Expand Up @@ -810,7 +810,7 @@ void zend_optimizer_compact_literals(zend_op_array *op_array, zend_optimizer_ctx
Z_CACHE_SLOT_P(val) = op_array->cache_size;
op_array->cache_size += sizeof(zval);
}
} else if (opline->opcode != ZEND_RECV) {
} else if (opline->opcode != ZEND_RECV && opline->opcode != ZEND_EXT_NOP) {
break;
}
opline++;
Expand Down

0 comments on commit 7676090

Please sign in to comment.