]> granicus.if.org Git - php/commitdiff
Check for exception after $this destruction
authorDmitry Stogov <dmitry@zend.com>
Tue, 18 Aug 2020 18:13:18 +0000 (21:13 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 18 Aug 2020 18:13:18 +0000 (21:13 +0300)
ext/opcache/jit/zend_jit_x86.dasc

index cdae709b31862bf03a39150a32d3c88aab760add..25cd3143fd8a635f414670bb27f7b5ad9e0e0ab6 100644 (file)
@@ -10101,6 +10101,8 @@ static int zend_jit_leave_func(dasm_State **Dst, const zend_op *opline, const ze
                        |       mov FCARG1a, EX->This.value.obj
                        |       // OBJ_RELEASE(object);
                        |       OBJ_RELEASE ZREG_FCARG1a, >4
+                       // TODO: avoid EG(excption) check for $this->foo() calls
+                       may_throw = 1;
                }
                |4:
        }