Ask a Question related to PHP Bugs, Design and Development.
-
tony2001@php.net #1
#38757 [Opn->Fbk]: MultiPart Form Uploads fail with FastCGI
ID: 38757
Updated by: [email]tony2001@php.net[/email]
Reported By: davidb at pins dot net
-Status: Open
+Status: Feedback
Bug Type: Apache related
Operating System: Solaris 8
PHP Version: 5.1.6
New Comment:
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
Previous Comments:
------------------------------------------------------------------------
[2006-09-08 22:04:15] davidb at pins dot net
Description:
------------
Greetings.
I'm currently observing a reproducible version of bug #26647 in the PHP
5.1 train. For a subset of users running mostly Mac but some PC
browsers, the PHP process unceremoniously exists witout comment when
the form is POST'ed. A truss of the PHP FastCGI process shows PHP
reading in the text (incidently, it's also pointed out a performance
issue where php's doing a read() of 8 bytes at a time from the FastCGI
stream instead of 8kB at at a time, but I digress). The problem
appears to go away when I switch to a non-FastCGI version.
The broken users are broken consistently - it would be possible (and
easy) to gdb trace it and see why it's exiting. Here's the start/end
of the truss:
accept(0, 0xFFBEDA50, 0xFFBED99C, 1) = 4
fcntl(0, F_SETLK, 0xFFBEDA28) = 0
poll(0xFFBED8F0, 1, 1000) = 0
shutdown(4, 1, 1) = 0
recv(4, "0101\001\0\b\0\0", 8, 0) = 8
recv(4, "\001\0\0\0\0\0\0", 8, 0) = 8
recv(4, "0104\001\015\0\0", 8, 0) = 8
recv(4, "0E05 C O N T E N", 8, 0) = 8
recv(4, " T _ L E N G T H", 8, 0) = 8
recv(4, " 8 3 5 1 90104\0", 8, 0) = 8
recv(4, "01\0 d\0\0\f V C", 8, 0) = 8
recv(4, " O N T E N T _ T", 8, 0) = 8
recv(4, " Y P E m u l t i", 8, 0) = 8
recv(4, " p a r t / f o r", 8, 0) = 8
recv(4, " m - d a t a ; ", 8, 0) = 8
recv(4, " b o u n d a r y", 8, 0) = 8
recv(4, " m L b O u N d A", 8, 0) = 8
(many many lines)
recv(4, " r Y - -\r\n0105", 8, 0) = 8
recv(4, "\001\0\0\0\0", 8, 0) = 6
recv(4, 0xFFBEDA28, 8, 0) = 0
close(4) = 0
fcntl(0, F_SETLKW, 0xFFBEDA28) = 0
accept(0, 0xFFBEDA50, 0xFFBED99C, 1) (sleeping...)
Bam. Goodbye. No error, no nothing.
Reproduce code:
---------------
<html>
<head>
</head>
<body>
<form method="post" action="response.php"
enctype="multipart/form-data">
<input name="test" type="file">
<input name="submit" value="submit" type="submit" />
</form>
</body>
</html>
Expected result:
----------------
The response.php should work - note, however, that php never even
attempts to open the response.php file, which is just a trivial "file
uploaded" message, no attempt to save.
Actual result:
--------------
See above truss - php just exits.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=38757&edit=1[/url]
tony2001@php.net Guest
-
#39123 [NEW]: upload_tmp_dir with trailing slash in open_basedir causes uploads to fail
From: phpbugs at thequod dot de Operating system: Ubuntu Linux PHP version: 5CVS-2006-10-11 (CVS) PHP Bug Type: Safe... -
#38757 [NEW]: MultiPart Form Uploads fail with FastCGI
From: davidb at pins dot net Operating system: Solaris 8 PHP version: 5.1.6 PHP Bug Type: Apache related Bug description: ... -
Large file uploads fail after 6.1 to 7.0.1 upgrade
After upgrading CF from 6.1 to 7.0.1 users are getting a "Cannot find server or DNS Error Internet Explorer" error as soon as they try to upload a... -
file upload form enctype="multipart/form-data
I'm upload a file using cffile upload and that seems to work fine except I need to use enctype="multipart/form-data on the form side. This isn't a... -
multipart/form-data
Have a form that I want users to be able to both upload a file and fill out some regular text input boxes then submit all together. I have the...



Reply With Quote

