From 7283dbba274bf5fe879844d54eb504e7c62467d3 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 20 Mar 2020 01:37:27 +0300 Subject: [PATCH] ZEND_MAKE_REF can't throw --- ext/opcache/Optimizer/zend_inference.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index 34d6286769..cb02e58673 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -4245,6 +4245,7 @@ int zend_may_throw(const zend_op *opline, const zend_ssa_op *ssa_op, const zend_ case ZEND_SEND_REF: case ZEND_UNSET_CV: case ZEND_ISSET_ISEMPTY_CV: + case ZEND_MAKE_REF: break; default: /* undefined variable warning */ @@ -4269,6 +4270,7 @@ int zend_may_throw(const zend_op *opline, const zend_ssa_op *ssa_op, const zend_ case ZEND_SEND_REF: case ZEND_SEPARATE: case ZEND_END_SILENCE: + case ZEND_MAKE_REF: break; default: /* destructor may be called */ -- 2.40.0