[php-src] master: Fix backport
| From: | ndossche | Date: | Sun, 11 Oct 2026 13:18:31 +0000 |
| Subject: | [php-src] master: Fix backport | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142186@lists.php.net to get a copy of this message | ||
Author: ndossche (ndossche)
Date: 2026-10-11T15:17:59+02:00
Commit: https://github.com/php/php-src/commit/ebf512899125adfe6b6332a25253ad5e10cb413a
Raw diff: https://github.com/php/php-src/commit/ebf512899125adfe6b6332a25253ad5e10cb413a.diff
Fix backport
Changed paths:
M Zend/Optimizer/zend_inference.c
Diff:
diff --git a/Zend/Optimizer/zend_inference.c b/Zend/Optimizer/zend_inference.c
index 7fa5530c1302..a2e1d03404d8 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: