]> granicus.if.org Git - php/commitdiff
hmm, we do not need the nop after compilation, so does not matter for opcache...
authorBob Weinand <bobwei9@hotmail.com>
Fri, 10 Jul 2015 21:35:05 +0000 (23:35 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Fri, 10 Jul 2015 21:35:05 +0000 (23:35 +0200)
Zend/zend_compile.c

index 3f773502d0fff5fa6069e41f0cac324af4647da3..936ed38b7c15089151ba8e0ed45249b3d1b8c819 100644 (file)
@@ -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);
                        }
                }
        }