diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c index d0f8cdc7e3a..88b905ffeab 100644 --- a/Zend/zend_strtod.c +++ b/Zend/zend_strtod.c @@ -3614,7 +3614,7 @@ rv_alloc(int i) j = sizeof(ULong); if (i > ((INT_MAX >> 2) + rem)) - zend_error_noreturn(E_ERROR, "rv_alloc() allocation overflow %d", i); + i = (INT_MAX >> 2) + rem; for(k = 0; rem + j <= (size_t)i; j <<= 1) k++;