Skip to content

Commit

Permalink
Prevent duplicate debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Sep 4, 2017
1 parent ecc8f3c commit 4f1c2c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/opcache/Optimizer/zend_optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,8 @@ int zend_optimize_script(zend_script *script, zend_long optimization_level, zend
} ZEND_HASH_FOREACH_END();
}

if (debug_level & ZEND_DUMP_AFTER_OPTIMIZER) {
if ((debug_level & ZEND_DUMP_AFTER_OPTIMIZER) &&
(ZEND_OPTIMIZER_PASS_7 & ctx->optimization_level) {
zend_dump_op_array(&script->main_op_array, ZEND_DUMP_RT_CONSTANTS, "after optimizer", NULL);

ZEND_HASH_FOREACH_PTR(&script->function_table, op_array) {
Expand Down

0 comments on commit 4f1c2c2

Please sign in to comment.