]> granicus.if.org Git - php/commitdiff
Fixed reference-counting propagation
authorDmitry Stogov <dmitry@zend.com>
Wed, 11 Nov 2020 11:54:00 +0000 (14:54 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 11 Nov 2020 11:54:00 +0000 (14:54 +0300)
ext/opcache/jit/zend_jit_trace.c

index c13ba1d48549d2111569235a6ed9ec3ea80d2ff0..85f09d3275da6a9c9908ee4e810c30ca25e45ec8 100644 (file)
@@ -1751,6 +1751,9 @@ propagate_arg:
                                                                }
                                                        }
                                                }
+                                               if (opline->op1_type == IS_CV && (info & MAY_BE_RC1)) {
+                                                       info |= MAY_BE_RCN;
+                                               }
                                                if (info & MAY_BE_UNDEF) {
                                                        info |= MAY_BE_NULL;
                                                        info &= ~MAY_BE_UNDEF;