PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_Upload » Bug #836

does not handle upload_max_filesize like 2M style

Details

Submitted2004-02-23 01:54 UTC
Frommaka3d at yahoo dot com dot br
Assignedantonio
StatusClosed
PackageHTTP_Upload
PHP Version4.3.4
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-02-23 01:54 UTC] maka3d at yahoo dot com dot br

Description:
------------
at line 80 is very common upload_max_filesize be set to a non integer like 2M!

change the line:

$ini_size = ini_get('upload_max_filesize');

to:

$ini_size = str_replace('m','000000', strtolower( ini_get('upload_max_filesize') ) );