com php-src: hmm, we do not need the nop after compilation, so does not matter for opcache...: Zend/zend_compile.c
| From: | Bob Weinand | Date: | Fri, 10 Jul 2015 21:35:05 +0000 |
| Subject: | com php-src: hmm, we do not need the nop after compilation, so does not matter for opcache...: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87916@lists.php.net to get a copy of this message | ||
Commit: 0584df0ad9e97dc89b6d81791249e5024ad41cc7
Author: Bob Weinand <bobwei9@hotmail.com> Fri, 10 Jul 2015 23:35:05 +0200
Parents: 56800e470bc591cd8718f7b5d245c105bbffb698
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0584df0ad9e97dc89b6d81791249e5024ad41cc7
Log:
hmm, we do not need the nop after compilation, so does not matter for opcache...
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 3f77350..936ed38 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -4075,8 +4075,7 @@ void zend_compile_try(zend_ast *ast) /* {{{ */
if ((labelzv = zend_hash_get_current_data_ex(CG(context).labels, &hpos))) {
zend_label *label = Z_PTR_P(labelzv);
if (label->opline_num == get_next_op_number(CG(active_op_array))) {
- /* using a NOP doesn't work here, it would be removed by opcache */
- zend_emit_jump(get_next_op_number(CG(active_op_array)) + 1);
+ zend_emit_op(NULL, ZEND_NOP, NULL, NULL);
}
}
}