php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24623 G for Gigabytes
Submitted: 2003-07-12 16:17 UTC Modified: 2005-06-28 23:21 UTC
From: chkno at chkno dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.1.0 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chkno at chkno dot net
New email:
PHP Version: OS:

 

 [2003-07-12 16:17 UTC] chkno at chkno dot net
Description:
------------
In the php.ini parser, "2M" is shorthand for 2 megabytes (2 * 
1024 * 1024). 
 
Can we have a G for Gigabytes? 

Reproduce code:
---------------
; (in php.ini)

upload_max_filesize = 2G

Actual result:
--------------
PHP Warning:  upload_max_filesize of 2 bytes exceeded - file 
[file=test] not saved in Unknown on line 0, referer: 
http://chkno.com/upload.php 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-12 17:02 UTC] b_ulrich at t-online dot de
If you will add the G for Gigabytes just add the T for Terabytes too, so it will be future save until doomsday. (or at least for the next 5 or 10 years :-) )
 [2005-06-28 23:21 UTC] nlopess@php.net
Derick already added the 'G'.
 [2005-06-28 23:21 UTC] nlopess@php.net
Derick already added the 'G'.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 16:01:33 2024 UTC