com php-src: Fixed bug #77287: NEWS ext/opcache/Optimizer/compa ct_literals.c
| From: | Christoph Michael Becker | Date: | Tue, 05 Feb 2019 12:23:50 +0000 |
| Subject: | com php-src: Fixed bug #77287: NEWS ext/opcache/Optimizer/compa ct_literals.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104445@lists.php.net to get a copy of this message | ||
Commit: 80b17a73ae2e203f26bb3f0da423508596d71f1f
Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 22 Jan 2019 12:15:06 +0100
Committer: Christoph M. Becker <cmbecker69@gmx.de> Tue, 5 Feb 2019 13:23:50 +0100
Parents: 5cce13ed67005f2a51e92d19340e9c97215d3d30
Branches: PHP-7.3.2
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=80b17a73ae2e203f26bb3f0da423508596d71f1f
Log:
Fixed bug #77287
There may be an EXT_NOP opcode before the parameter list, we should
skip over it.
(cherry picked from commit 76760901fabf8ff53c8dfb4ddf7ca703c5a12b79)
Bugs:
https://bugs.php.net/77287
Changed paths:
M NEWS
M ext/opcache/Optimizer/compact_literals.c
Diff:
diff --git a/NEWS b/NEWS
index 353dc26..907de67 100644
--- a/NEWS
+++ b/NEWS
@@ -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)
diff --git a/ext/opcache/Optimizer/compact_literals.c b/ext/opcache/Optimizer/compact_literals.c
index 10bdf54...fdab006 100644
--- a/ext/opcache/Optimizer/compact_literals.c
+++ b/ext/opcache/Optimizer/compact_literals.c
@@ -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++;