com php-src: Fixed typo: ext/opcache/Optimizer/pass3.c

From: Date: Wed, 09 Oct 2019 23:17:50 +0000
Subject: com php-src: Fixed typo: ext/opcache/Optimizer/pass3.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108844@lists.php.net to get a copy of this message
Commit: bf5d299ef4b96237bca0196be95deda5912e24f1 Author: Dmitry Stogov <dmitry@zend.com> Thu, 10 Oct 2019 02:17:50 +0300 Parents: fa0a17a76fbe9cccb89281cadc81c60ebc6c57cf Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bf5d299ef4b96237bca0196be95deda5912e24f1 Log: Fixed typo Changed paths: M ext/opcache/Optimizer/pass3.c Diff: diff --git a/ext/opcache/Optimizer/pass3.c b/ext/opcache/Optimizer/pass3.c index de2acc6dbc9..5de29089bd3 100644 --- a/ext/opcache/Optimizer/pass3.c +++ b/ext/opcache/Optimizer/pass3.c @@ -77,7 +77,7 @@ void zend_optimizer_pass3(zend_op_array *op_array, zend_optimizer_ctx *ctx) target = ZEND_OP1_JMP_ADDR(target); CHECK_LOOP(target); ZEND_SET_OP_JMP_ADDR(opline, opline->op1, target); - } else if (target->opcode == ZEND_JMP) { + } else if (target->opcode == ZEND_NOP) { target = target + 1; ZEND_SET_OP_JMP_ADDR(opline, opline->op1, target); } else { @@ -126,7 +126,7 @@ void zend_optimizer_pass3(zend_op_array *op_array, zend_optimizer_ctx *ctx) target = ZEND_OP1_JMP_ADDR(target); CHECK_LOOP(target); ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); - } else if (target->opcode == ZEND_JMP) { + } else if (target->opcode == ZEND_NOP) { target = target + 1; ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); } else { @@ -170,7 +170,7 @@ void zend_optimizer_pass3(zend_op_array *op_array, zend_optimizer_ctx *ctx) } CHECK_LOOP(target); ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); - } else if (target->opcode == ZEND_JMP) { + } else if (target->opcode == ZEND_NOP) { target = target + 1; ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); } else { @@ -265,7 +265,7 @@ void zend_optimizer_pass3(zend_op_array *op_array, zend_optimizer_ctx *ctx) opline->result.var = target->result.var; target = target + 1; ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); - } else if (target->opcode == ZEND_JMP) { + } else if (target->opcode == ZEND_NOP) { target = target + 1; ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); } else { @@ -305,7 +305,7 @@ void zend_optimizer_pass3(zend_op_array *op_array, zend_optimizer_ctx *ctx) target = ZEND_OP1_JMP_ADDR(target); CHECK_LOOP(target); opline->extended_value = ZEND_OPLINE_TO_OFFSET(opline, target); - } else if (target->opcode == ZEND_JMP) { + } else if (target->opcode == ZEND_NOP) { target = target + 1; opline->extended_value = ZEND_OPLINE_TO_OFFSET(opline, target); } else {

« previous php.cvs (#108844) next »