com php-src: Fixed possible false assertion failure: ext/opcache/Optimizer/zend_cfg.c

From: Date: Thu, 08 Dec 2016 14:04:43 +0000
Subject: com php-src: Fixed possible false assertion failure: ext/opcache/Optimizer/zend_cfg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96271@lists.php.net to get a copy of this message
Commit: 8250b3fca18efd310769c40c3e578fd40df6428b Author: Xinchen Hui <laruence@gmail.com> Thu, 8 Dec 2016 22:04:43 +0800 Parents: f8ea3e3e4c6ae25546167f967f9cd11eec5842c2 Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8250b3fca18efd310769c40c3e578fd40df6428b Log: Fixed possible false assertion failure 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 f39f965..49bbe24 100644 --- a/ext/opcache/Optimizer/zend_cfg.c +++ b/ext/opcache/Optimizer/zend_cfg.c @@ -135,12 +135,11 @@ static void zend_mark_reachable_blocks(const zend_op_array *op_array, zend_cfg * b->flags |= ZEND_BB_GEN_VAR; b = blocks + block_map[live_range->end]; b->flags |= ZEND_BB_KILL_VAR; - if (!(b->flags & ZEND_BB_REACHABLE)) { + if (!(b->flags & (ZEND_BB_REACHABLE|ZEND_BB_UNREACHABLE_FREE))) { if (cfg->split_at_live_ranges) { changed = 1; zend_mark_reachable(op_array->opcodes, cfg, b); } else { - ZEND_ASSERT(!(b->flags & ZEND_BB_UNREACHABLE_FREE)); ZEND_ASSERT(b->start == live_range->end); b->flags |= ZEND_BB_UNREACHABLE_FREE; }

« previous php.cvs (#96271) next »