Issue Bug Closed

#23755Size calculation function can only deal with integers

Benni Mack 10/16/10, 22:53 updated 03/29/11, 17:45

Description

The conversion function t3lib_div::getBytesFromSizeMeasurement($limit) casts the $limit function to integer. Usually you have a value from php.ini like upload_max_file = 2M, which works fine with that function.

However, if you have values like upload_max_file = 2.5M, the t3lib_div function fails.

Solution is to replace the intval() calls with doubleval() calls.

(issue imported from #M16022)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.