php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33783 post_max_size value shown in phpinfo but ignored
Submitted: 2005-07-20 12:10 UTC Modified: 2005-07-20 12:23 UTC
From: pumuckel at metropolis dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5CVS-2005-07-20 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pumuckel at metropolis dot de
New email:
PHP Version: OS:

 

 [2005-07-20 12:10 UTC] pumuckel at metropolis dot de
Description:
------------
The value set in php.ini (and in httpd.conf rule for virtual host) is set (and shown in phpinfo()!) but it is ignored. We are trying to upload a 2M file and get an error message:
[20-Jul-2005 10:19:55] PHP Warning:  POST Content-Length of 2526325 bytes exceeds the limit of 1048576 bytes in Unknown on line 0

php_max_size and upload_max_filesize both are set to 8M

Also memory_limit is set to this value.
Setting those values to 8388608 does not help neither.

We do not have any ini flag set to 1M (or 1048576)

This behaviour can be reproduced here with older 5.0.5-dev, actual 5.0.5-dev and actual 5.1 snap.

Reproduce code:
---------------
Try to upload a file bigger than 1048576 bytes.

Expected result:
----------------
It should not stop the upload with above message.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-20 12:16 UTC] sniper@php.net
Works fine for me. Remove all php ini settings from your httpd.conf and any other conf that might be include and set the sizes only in php.ini. (remember to restart Apache :)

 [2005-07-20 12:19 UTC] pumuckel at metropolis dot de
Err... forget it. Error by user. The 1M value was hidden somewhere in location directive inside global webserver config...
 [2005-07-20 12:23 UTC] tony2001@php.net
No bug -> bogus.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 30 22:00:01 2025 UTC