[TYPO3-core] RFC #16022: Size calculation function can only deal with integers
Benjamin Mack
benni at typo3.org
Sat Oct 16 22:58:06 CEST 2010
Hey,
this is a SVN patch request.
Branches: trunk, 4.4
Type: bugfix
BT reference: http://bugs.typo3.org/view.php?id=16022
Problem:
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:
Replace the intval() calls with doubleval() calls.
All the best,
Benni.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16022_measurements_with_double_t3lib_div.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101016/364d73c7/attachment.txt>
More information about the TYPO3-team-core
mailing list