]> granicus.if.org Git - php/commitdiff
Fixed JIT failure on "$a = []; $a[1] += 2;"
authorDmitry Stogov <dmitry@zend.com>
Tue, 25 Aug 2020 13:08:33 +0000 (16:08 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 25 Aug 2020 13:08:33 +0000 (16:08 +0300)
ext/opcache/jit/zend_jit_x86.dasc

index 84c7c091285bf24c58b21661830a43a312c2b63d..f655c1616d423903a46a6c8e84e0b2f3f14caffb 100644 (file)
@@ -5123,13 +5123,11 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
                                break;
                        case BP_VAR_RW:
                                |2:
-                               if (op1_info & MAY_BE_ARRAY_KEY_LONG) {
-                                       |4:
-                                       |       SAVE_VALID_OPLINE opline, r0
-                                       |       EXT_CALL zend_jit_hash_index_lookup_rw, r0
-                                       |       test r0, r0
-                                       |       jz >9
-                               }
+                               |4:
+                               |       SAVE_VALID_OPLINE opline, r0
+                               |       EXT_CALL zend_jit_hash_index_lookup_rw, r0
+                               |       test r0, r0
+                               |       jz >9
                                break;
                        case BP_VAR_W:
                                |2: