PHP 4.0 Bug #7679 Updated: multipart/form-data (upload) form method broken
| From: | jmoore@php.net | Date: | Sun, 12 Nov 2000 16:55:36 +0000 |
| Subject: | PHP 4.0 Bug #7679 Updated: multipart/form-data (upload) form method broken | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37827@lists.php.net to get a copy of this message | ||
ID: 7679
Updated by: jmoore
Reported By: jamie@trewtech.copm
Status: Feedback
Bug Type: HTTP related
Assigned To:
Comments:
---feedback from user -----------
> File uploads of any significant size don't work (script dies
> after a little
> while with no error reported by script). Bug report at:
>
> http://bugs.php.net/bugs.php?id=7679
>
> I have now tested Apache 1.3.14 + php4.0.2 and uploading works fine.
> Does not work with Apache 1.3.12 + php4.0.3pl1 or 1.3.14 + php4.0.3pl1
>
> My httpd.conf includes:
>
> php_flag file_uploads on
> php_value post_max_size 99999999
> php_value upload_max_filesize 99999999
>
> -- Jamie
-------------------------------------------------
try making memory_limit larger too.
James
Previous Comments:
---------------------------------------------------------------------------
[2000-11-07 14:40:47] jamie@trewtech.copm
Problem occurs with Apache 1.3.14 + Mod_SSL 2.7.1 + mod_perl 1.24_01 + mod_php 4.0.3pl1
Problem occurs with Apache 1.3.12 + mod_ssl 2.6.5 + mod_perl 1.24_01 + mod_php 4.03pl1
Problem does not occur with Apache 1.3.12 + mod_ssl 2.6.5 + mod_perl 1.24_01 + mod_php 4.02
History:
I recently went from Apache 1.3.12 + PHP 4.0.2 to Apache 1.3.14 + 4.0.3pl1.
After upgrading, my web upload forms were broken. The script would die after less than 15 seconds
or so when uploading a big file, and a new page would not be loaded (e.g. no error was reported to
the web client, it just stopped and reloaded the old form). Small files would sometimes still work.
Apache reported:
[Fri Nov 3 11:17:24 2000] [error] [client 192.168.1.3] Invalid method in request
-----------------------------7d03b626abc
I initially assumed this was an Apache 1.3.14 error, so I unhappily rebuilt Apache 1.3.12 with PHP
4.0.3pl1. However, after this, the problem still occurred.
So I rebuilt again with my previous configuration (4.0.2) and everything worked again. So I can
only assume that there is a problem with the new PHP version. The only thing I've yet to try
(for lack of time) is PHP 4.0.2 on Apache 1.3.14 which -- if it works -- would confirm that the
problem is with PHP rather than Apache.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7679