com php-src: Fixed compilation: ext/opcache/Optimizer/pass1 _5.c

From: Date: Fri, 18 Dec 2015 13:53:31 +0000
Subject: com php-src: Fixed compilation: ext/opcache/Optimizer/pass1 _5.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90335@lists.php.net to get a copy of this message
Commit: f9b5345a98caae847e337bc5b7312aec0ebb9368 Author: Dmitry Stogov <dmitry@zend.com> Fri, 18 Dec 2015 16:53:31 +0300 Parents: af871f61dc8558f368cf908de0df327f9a7e0b91 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f9b5345a98caae847e337bc5b7312aec0ebb9368 Log: Fixed compilation Changed paths: M ext/opcache/Optimizer/pass1_5.c Diff: diff --git a/ext/opcache/Optimizer/pass1_5.c b/ext/opcache/Optimizer/pass1_5.c index 699e84f...48a7319 100644 --- a/ext/opcache/Optimizer/pass1_5.c +++ b/ext/opcache/Optimizer/pass1_5.c @@ -42,7 +42,7 @@ void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx) int i = 0; zend_op *opline = op_array->opcodes; zend_op *end = opline + op_array->last; - zend_bool collect_constants = (ZEND_OPTIMIZER_PASS_15 & OPTIMIZATION_LEVEL)? + zend_bool collect_constants = (ZEND_OPTIMIZER_PASS_15 & ctx->optimization_level)? (op_array == &ctx->script->main_op_array) : 0; while (opline < end) {

« previous php.cvs (#90335) next »