Skip to content

Commit 377e48b

Browse files
committed
Cast of string to long/double can not produce exception
1 parent 228dd01 commit 377e48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4208,7 +4208,7 @@ int zend_may_throw(const zend_op *opline, zend_op_array *op_array, zend_ssa *ssa
42084208
return (t1 & MAY_BE_OBJECT);
42094209
case IS_LONG:
42104210
case IS_DOUBLE:
4211-
return (t1 & (MAY_BE_STRING|MAY_BE_OBJECT));
4211+
return (t1 & MAY_BE_OBJECT);
42124212
case IS_STRING:
42134213
return (t1 & (MAY_BE_ARRAY|MAY_BE_OBJECT));
42144214
case IS_ARRAY:

0 commit comments

Comments
 (0)