From: Xinchen Hui Date: Wed, 8 Jul 2015 09:44:54 +0000 (+0800) Subject: Add comment to explaining the new check X-Git-Tag: php-7.1.1RC1~35^2~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=249915f938f6880b68ab6c6a47952c509dc51604;p=php Add comment to explaining the new check --- diff --git a/ext/opcache/Optimizer/optimize_temp_vars_5.c b/ext/opcache/Optimizer/optimize_temp_vars_5.c index de170d2295..f60f61cb45 100644 --- a/ext/opcache/Optimizer/optimize_temp_vars_5.c +++ b/ext/opcache/Optimizer/optimize_temp_vars_5.c @@ -152,6 +152,9 @@ void optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_ctx *c currT = VAR_NUM(ZEND_RESULT(opline).var) - offset; if (valid_T[currT]) { if (start_of_T[currT] == opline) { + /* ZEND_FAST_CALL can not share temporary var with others + * since the fast_var could also be set by ZEND_HANDLE_EXCEPTION + * which could be ahead of it */ if (opline->opcode != ZEND_FAST_CALL) { taken_T[map_T[currT]] = 0; }