Cast of string to long/double can not produce exception

This commit is contained in:
Dmitry Stogov 2017-07-14 11:28:50 +03:00
parent 228dd01af3
commit 377e48b342

View file

@ -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: