Skip to content

Commit 2ba8668

Browse files
committed
Add MAY_BE_UNDEF to inference for -- op
1 parent ab414a9 commit 2ba8668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/Optimizer/zend_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4685,7 +4685,7 @@ ZEND_API bool zend_may_throw_ex(const zend_op *opline, const zend_ssa_op *ssa_op
46854685
/* null emits a warning as it has no effect compared to ++ which converts the value to 1 */
46864686
case ZEND_PRE_DEC:
46874687
case ZEND_POST_DEC:
4688-
return (t1 & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE));
4688+
return (t1 & (MAY_BE_UNDEF|MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE));
46894689
case ZEND_BOOL_NOT:
46904690
case ZEND_JMPZ:
46914691
case ZEND_JMPNZ:

0 commit comments

Comments
 (0)