com php-src: Fixed typo (it should be typo): ext/opcache/Optimi zer/block_pass.c

[email protected] (Xinchen Hui)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    d2f384a47b0c0514f12a2af511c94f11fc98a648
Author:    Xinchen Hui <[email protected]>         Thu, 23 Feb 2017 13:58:08 +0800
Parents:   330a7b62c3558aa987ee80e12f1914347d3a9eee
Branches:  PHP-7.1 master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=d2f384a47b0c0514f12a2af511c94f11fc98a648

Log:
Fixed typo (it should be typo)

Changed paths:
  M  ext/opcache/Optimizer/block_pass.c


Diff:
diff --git a/ext/opcache/Optimizer/block_pass.c b/ext/opcache/Optimizer/block_pass.c
index f69199b..ee33b99 100644
--- a/ext/opcache/Optimizer/block_pass.c
+++ b/ext/opcache/Optimizer/block_pass.c
@@ -650,16 +650,16 @@ static void zend_optimize_block(zend_code_block *block, zend_op_array *op_array,
 			if (block->follow_to) {
 				delete_code_block(block, ctx);
 			}
-			if (block->len == 2
-			 && ((block->start_opline + 1)->opcode == ZEND_JMPZ
-			  || (block->start_opline + 1)->opcode == ZEND_JMPNZ)
-			 && (block->start_opline + 1)->op1_type & (IS_CV|IS_CONST)
-			 && block->start_opline > op_array->opcodes
-			 && zend_is_smart_branch(block->start_opline - 1)) {
-				break;
-			}
 			return;
 		}
+		if (block->len == 2
+		 && ((block->start_opline + 1)->opcode == ZEND_JMPZ
+		  || (block->start_opline + 1)->opcode == ZEND_JMPNZ)
+		 && (block->start_opline + 1)->op1_type & (IS_CV|IS_CONST)
+		 && block->start_opline > op_array->opcodes
+		 && zend_is_smart_branch(block->start_opline - 1)) {
+			break;
+		}
 		block->start_opline++;
 		block->start_opline_no++;
 		block->len--;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.