From 377e48b3426f9ccbcd6207acbbed87b9fdbf549d Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 14 Jul 2017 11:28:50 +0300 Subject: [PATCH] Cast of string to long/double can not produce exception --- ext/opcache/Optimizer/zend_inference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index 5af968aec35..1e524748975 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -4208,7 +4208,7 @@ int zend_may_throw(const zend_op *opline, zend_op_array *op_array, zend_ssa *ssa return (t1 & MAY_BE_OBJECT); case IS_LONG: case IS_DOUBLE: - return (t1 & (MAY_BE_STRING|MAY_BE_OBJECT)); + return (t1 & MAY_BE_OBJECT); case IS_STRING: return (t1 & (MAY_BE_ARRAY|MAY_BE_OBJECT)); case IS_ARRAY: