com php-src: Fixed wrong constant usage: ext/opcache/Optimizer/ zend_ssa.c
| From: | Dmitry Stogov | Date: | Tue, 12 Nov 2019 09:59:50 +0000 |
| Subject: | com php-src: Fixed wrong constant usage: ext/opcache/Optimizer/ zend_ssa.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109252@lists.php.net to get a copy of this message | ||
Commit: 9083e178f656878cab46aee52b555346ef92a768
Author: Dmitry Stogov <dmitry@zend.com> Tue, 12 Nov 2019 12:59:50 +0300
Parents: ea2a125789d2e6cf7416bd706be1ac44df1367e4
Branches: PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9083e178f656878cab46aee52b555346ef92a768
Log:
Fixed wrong constant usage
Changed paths:
M ext/opcache/Optimizer/zend_ssa.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_ssa.c b/ext/opcache/Optimizer/zend_ssa.c
index ce85f1483ab..aa6ce0d7fde 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));