php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50288 upload_max_filesize accepts number out of range
Submitted: 2009-11-24 20:43 UTC Modified: 2009-11-25 13:13 UTC
From: iannsp at gmail dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2.11 OS: Window 2003
Private report: No CVE-ID: None
 [2009-11-24 20:43 UTC] iannsp at gmail dot com
Description:
------------
in a machine with windows 2003 SO with 32bit processor the message above appear at log when the administrator set the max_upload_size to 2048M.

[24-Nov-2009 20:17:19] PHP Warning:  POST Content-Length of 4058 bytes exceeds the limit of -2147483648 bytes in Unknown on line 0
6:34 PM

The administrator get the value back to 1024M and it works fine.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-25 07:11 UTC] carsten_sttgt at gmx dot de
From the manual:
| Be careful not to exceed the 32 bit signed integer limit
| (if you're using 32bit versions) as it will cause your script
| to fail.

BTW:
It's "upload_max_filesize" and not "max_upload_size".

Regards,
Carsten
 [2009-11-25 12:37 UTC] jani@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 [2009-11-25 13:13 UTC] iannsp at gmail dot com
BTW,
I appreciate your attention by this bug bug every think you said I just know.
Fact is I really like to know if this problem can handle with using a unsigned int left a signed and if exists more ocurrences like this at php.ini.
The boundary can be tested with some script?
Attention to the fact some people dont know the boundarys, ok?!

and, man, sorry by the mistake, but you understand, anyway, and I think better know the parameter are there and dont remember the correct name then dont know its there. :)

thanks a lot.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 19:01:31 2024 UTC