com php-src: Set flags on the right block: ext/opcache/Optimize r/zend_cfg.c

[email protected] (Nikita Popov)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    07fe8616e6750b6d2b1cc72ab54ea4663ec653fb
Author:    Nikita Popov <[email protected]>         Tue, 11 Apr 2017 00:04:07 +0200
Parents:   a4c7c55c0b63ddbccc724248ae317d391ea0b001
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=07fe8616e6750b6d2b1cc72ab54ea4663ec653fb

Log:
Set flags on the right block

Changed paths:
  M  ext/opcache/Optimizer/zend_cfg.c


Diff:
diff --git a/ext/opcache/Optimizer/zend_cfg.c b/ext/opcache/Optimizer/zend_cfg.c
index 3eac1f6..bc98db5 100644
--- a/ext/opcache/Optimizer/zend_cfg.c
+++ b/ext/opcache/Optimizer/zend_cfg.c
@@ -56,13 +56,13 @@ static void zend_mark_reachable(zend_op *opcodes, zend_cfg *cfg, zend_basic_bloc
 								opcode == ZEND_DO_FCALL ||
 								opcode == ZEND_DO_UCALL ||
 								opcode == ZEND_DO_FCALL_BY_NAME) {
-								b->flags |= ZEND_BB_ENTRY;
+								succ->flags |= ZEND_BB_ENTRY;
 							}
 						}
 						if (cfg->split_at_recv) {
 							if (opcode == ZEND_RECV ||
 								opcode == ZEND_RECV_INIT) {
-								b->flags |= ZEND_BB_RECV_ENTRY;
+								succ->flags |= ZEND_BB_RECV_ENTRY;
 							}
 						}
 					}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.