Skip to content

Commit 7283dbb

Browse files
committed
ZEND_MAKE_REF can't throw
1 parent 9232af9 commit 7283dbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4245,6 +4245,7 @@ int zend_may_throw(const zend_op *opline, const zend_ssa_op *ssa_op, const zend_
42454245
case ZEND_SEND_REF:
42464246
case ZEND_UNSET_CV:
42474247
case ZEND_ISSET_ISEMPTY_CV:
4248+
case ZEND_MAKE_REF:
42484249
break;
42494250
default:
42504251
/* undefined variable warning */
@@ -4269,6 +4270,7 @@ int zend_may_throw(const zend_op *opline, const zend_ssa_op *ssa_op, const zend_
42694270
case ZEND_SEND_REF:
42704271
case ZEND_SEPARATE:
42714272
case ZEND_END_SILENCE:
4273+
case ZEND_MAKE_REF:
42724274
break;
42734275
default:
42744276
/* destructor may be called */

0 commit comments

Comments
 (0)