com php-src: Fallbuck to simple dump format if CFG wasn't constructed: ext/opcache/Optimizer/zend_dump.c
| From: | Dmitry Stogov | Date: | Wed, 16 Dec 2015 01:57:51 +0000 |
| Subject: | com php-src: Fallbuck to simple dump format if CFG wasn't constructed: ext/opcache/Optimizer/zend_dump.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90293@lists.php.net to get a copy of this message | ||
Commit: e7978713196ae05bc06a7d6e1f937c42b2322ab5
Author: Dmitry Stogov <dmitry@zend.com> Wed, 16 Dec 2015 04:57:51 +0300
Parents: c88ffa9a5673cb3141660626ba1921671f0b84d6
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e7978713196ae05bc06a7d6e1f937c42b2322ab5
Log:
Fallbuck to simple dump format if CFG wasn't constructed
Changed paths:
M ext/opcache/Optimizer/zend_dump.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_dump.c b/ext/opcache/Optimizer/zend_dump.c
index 894cc0db..8150ac5 100644
--- a/ext/opcache/Optimizer/zend_dump.c
+++ b/ext/opcache/Optimizer/zend_dump.c
@@ -834,6 +834,9 @@ void zend_dump_op_array(const zend_op_array *op_array, uint32_t dump_flags, cons
if (dump_flags & (ZEND_DUMP_CFG|ZEND_DUMP_SSA)) {
cfg = (const zend_cfg*)data;
+ if (!cfg->blocks) {
+ cfg = data = NULL;
+ }
}
if (dump_flags & ZEND_DUMP_SSA) {
ssa = (const zend_ssa*)data;