php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #14316 Incorrect upload_max_filesize causes problems
Submitted: 2001-12-02 19:04 UTC Modified: 2011-01-01 00:18 UTC
From: graeme at i7 dot com dot au Assigned:
Status: Wont fix Package: PHP options/info functions
PHP Version: 4.0.6 OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: graeme at i7 dot com dot au
New email:
PHP Version: OS:

 

 [2001-12-02 19:04 UTC] graeme at i7 dot com dot au
This is more of a user-error problem but it would be nice to maybe do something about.
Setting a upload_max_filesize value to 10MB rather then 10M causes PHP to ignore the MB portion and only allow uploads of 10 bytes instead.

Is it possible for PHP to instead inspect the first character after the number of use that so 10MB will get seen as 10M?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-03 04:12 UTC] sniper@php.net
This is different problem and has nothing to do with the http upload code.
The php ini parser should allow MB (instead of only allowing M)

--Jani

 [2011-01-01 00:18 UTC] jani@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: PHP options/info functions
 [2011-01-01 00:18 UTC] jani@php.net
M is more correct than MB and has worked for over 10 years. No need to change anything.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC