#33783 [Fbk->Csd]: post_max_size value shown in phpinfo but ignored
| From: | pumuckel at metropolis dot de | Date: | Wed, 20 Jul 2005 10:19:18 +0000 |
| Subject: | #33783 [Fbk->Csd]: post_max_size value shown in phpinfo but ignored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82196@lists.php.net to get a copy of this message | ||
ID: 33783
User updated by: pumuckel at metropolis dot de
Reported By: pumuckel at metropolis dot de
-Status: Feedback
+Status: Closed
Bug Type: *General Issues
Operating System: Linux
PHP Version: 5CVS-2005-07-20
New Comment:
Err... forget it. Error by user. The 1M value was hidden somewhere in
location directive inside global webserver config...
Previous Comments:
------------------------------------------------------------------------
[2005-07-20 12:16:18] 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:10:18] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33783&edit=1