]> granicus.if.org Git - php/commitdiff
Disabled unsafe optimization pattern
authorDmitry Stogov <dmitry@zend.com>
Thu, 14 Feb 2013 09:06:30 +0000 (13:06 +0400)
committerDmitry Stogov <dmitry@zend.com>
Thu, 14 Feb 2013 09:06:30 +0000 (13:06 +0400)
Optimizer/pass2.c

index ef6c5ac0c3ed424afc4d7b402ccfed6d274ffbe2..b600e6b40b0ff6095dd07211ba3073bf3d510dbe 100644 (file)
@@ -81,7 +81,8 @@ if (ZEND_OPTIMIZER_PASS_2 & OPTIMIZATION_LEVEL) {
                        case ZEND_JMPZ_EX:
                        case ZEND_JMPNZ_EX:
                                /* convert Ti = JMPZ_EX(Ti, L) to JMPZ(Ti, L) */
-                               if (ZEND_OP1_TYPE(opline) == IS_TMP_VAR &&
+                               if (0 && /* FIXME: temorary disable unsafe pattern */
+                                   ZEND_OP1_TYPE(opline) == IS_TMP_VAR &&
                                    ZEND_RESULT_TYPE(opline) == IS_TMP_VAR &&
                                    ZEND_OP1(opline).var == ZEND_RESULT(opline).var) {
                                        opline->opcode -= 3;