From 9083e178f656878cab46aee52b555346ef92a768 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 12 Nov 2019 12:59:50 +0300 Subject: [PATCH] Fixed wrong constant usage --- ext/opcache/Optimizer/zend_ssa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/Optimizer/zend_ssa.c b/ext/opcache/Optimizer/zend_ssa.c index ce85f1483a..aa6ce0d7fd 100644 --- a/ext/opcache/Optimizer/zend_ssa.c +++ b/ext/opcache/Optimizer/zend_ssa.c @@ -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)); -- 2.40.0