]> granicus.if.org Git - php/commitdiff
Fixed wrong constant usage
authorDmitry Stogov <dmitry@zend.com>
Tue, 12 Nov 2019 09:59:50 +0000 (12:59 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 12 Nov 2019 09:59:50 +0000 (12:59 +0300)
ext/opcache/Optimizer/zend_ssa.c

index ce85f1483ab2ac5c0e8dcb38da97be52b96bfc88..aa6ce0d7fdee4f6e2bb09062f26ffdee0e96b08a 100644 (file)
@@ -457,7 +457,7 @@ static void place_essa_pis(
                        if ((pi = add_pi(arena, op_array, dfg, ssa, j, bt, var))) {
                                pi_type_mask(pi, mask_for_type_check(type));
                        }
-                       if (type != IS_RESOURCE) {
+                       if (type != MAY_BE_RESOURCE) {
                                /* is_resource() may return false for closed resources */
                                if ((pi = add_pi(arena, op_array, dfg, ssa, j, bf, var))) {
                                        pi_not_type_mask(pi, mask_for_type_check(type));