Commit ebf51289912 for php
commit ebf512899125adfe6b6332a25253ad5e10cb413a
Author: ndossche <7771979+ndossche@users.noreply.github.com>
Date: Sun Oct 11 15:17:59 2026 +0200
Fix backport
diff --git a/Zend/Optimizer/zend_inference.c b/Zend/Optimizer/zend_inference.c
index 7fa5530c130..a2e1d03404d 100644
--- a/Zend/Optimizer/zend_inference.c
+++ b/Zend/Optimizer/zend_inference.c
@@ -5125,7 +5125,7 @@ ZEND_API bool zend_may_throw_ex(const zend_op *opline, const zend_ssa_op *ssa_op
return 0;
}
/* empty() casts to bool: objects may have a cast handler */
- return (t1 & (MAY_BE_OBJECT|MAY_BE_DOUBLE));
+ return (t1 & MAY_BE_OBJECT);
case ZEND_BOOL_XOR:
return (t1 & MAY_BE_OBJECT) || (t2 & MAY_BE_OBJECT);
case ZEND_IS_EQUAL: