]> granicus.if.org Git - php/commitdiff
Fixed incorrect JIT compilation
authorDmitry Stogov <dmitry@zend.com>
Tue, 26 Nov 2019 13:45:19 +0000 (16:45 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 26 Nov 2019 13:45:19 +0000 (16:45 +0300)
ext/opcache/jit/zend_jit_x86.dasc

index 568dab3f017f979f27ccbcc83dc3aea0b7c91008..be066f1700d57957a7168a78af7220fb34623e81 100644 (file)
@@ -894,7 +894,7 @@ static void* dasm_labels[zend_lb_MAX];
 ||             }
 ||     }
 ||     if (Z_MODE(dst_addr) == IS_MEM_ZVAL) {
-||             if (((dst_info & MAY_BE_ANY) != (1<<Z_TYPE_P(zv))) || (dst_info & (MAY_BE_STRING|MAY_BE_ARRAY)) != 0) {
+||             if (((dst_info & (MAY_BE_ANY|MAY_BE_UNDEF)) != (1<<Z_TYPE_P(zv))) || (dst_info & (MAY_BE_STRING|MAY_BE_ARRAY)) != 0) {
 |                      SET_ZVAL_TYPE_INFO dst_addr, Z_TYPE_INFO_P(zv)
 ||             }
 ||     }
@@ -968,7 +968,7 @@ static void* dasm_labels[zend_lb_MAX];
 ||             }
 ||     }
 ||     if (Z_MODE(dst_addr) == IS_MEM_ZVAL) {
-||             if (((dst_info & MAY_BE_ANY) != (1<<Z_TYPE_P(zv))) || (dst_info & (MAY_BE_STRING|MAY_BE_ARRAY)) != 0) {
+||             if (((dst_info & (MAY_BE_ANY|MAY_BE_UNDEF)) != (1<<Z_TYPE_P(zv))) || (dst_info & (MAY_BE_STRING|MAY_BE_ARRAY)) != 0) {
 |                      SET_ZVAL_TYPE_INFO dst_addr, Z_TYPE_INFO_P(zv)
 ||             }
 ||     }