Gargron / fileupload

PHP FileUpload library that supports chunked uploads
MIT License
460 stars 87 forks source link

PHP 7.1 incompatibility #32

Closed radmax closed 7 years ago

radmax commented 7 years ago

Due change in handling strings in PHP 7.1

New E_WARNING and E_NOTICE errors have been introduced when invalid strings are coerced using operators expecting numbers (+ - * / ** % << >> | & ^) or their assignment equivalents. An E_NOTICE is emitted when the string begins with a numeric value but contains trailing non-numeric characters, and an E_WARNING is emitted when the string does not contain a numeric value.

There is now E_NOTICE in function getConfigBytes. $val variable has to be stripped of last character (k, M, etc.) to be valid for numeric computations.

adelowo commented 7 years ago

I haven't upgraded to 7.1 yet (still on 7.0) but i can see this here. Thanks