Commit:    91e775df1b04a1da9292ef06a4fd0e56bc3a8cc6
Author:    Dmitry Stogov <dmi...@zend.com>         Thu, 14 Feb 2013 13:06:30 
+0400
Parents:   afb43f5650da2d24f03ce893bcd5123c12aba3fd
Branches:  PHP-5.5 master

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

Log:
Disabled unsafe optimization pattern

Changed paths:
  M  Optimizer/pass2.c


Diff:
diff --git a/Optimizer/pass2.c b/Optimizer/pass2.c
index ef6c5ac..b600e6b 100644
--- a/Optimizer/pass2.c
+++ b/Optimizer/pass2.c
@@ -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;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to