ID:               17958
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: Linux 2.4.18
 PHP Version:      4.2.3
 New Comment:

Tried snapshot from 2002-09-26. The Bug still appears, all post vars
get lost. In addition sometimes only some of the vars get lost.
file_uploads is set to "On".

System: WinXP Pro
Webserver: Apache/1.3.23 (Win32) PHP/4.3.0-dev mod_gzip/1.3.19.1a
mod_ssl/2.8.6 OpenSSL/0.9.6c


Previous Comments:
------------------------------------------------------------------------

[2002-09-23 15:12:59] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

When trying to replicate this bug please make sure your file_uploads
php.ini value is set to On. In some versions of PHP, POST vars would
get lost on multipart forms when this option has a blank or Off value.

------------------------------------------------------------------------

[2002-09-19 00:54:26] [EMAIL PROTECTED]

I am experiencing the same POST problem.
I thought it might have been an HTMLENTITIES problem
(which I posted an error) but after reading these 
bug reports, I get the same thing.
I spent 3+ days programming around this.
Very frustrating.

------------------------------------------------------------------------

[2002-09-18 20:10:54] [EMAIL PROTECTED]

Mozilla 1.1a is OK either; it seems to be an IE6.0 bug (maybe, a
specially coded feature?)

------------------------------------------------------------------------

[2002-09-18 13:53:45] [EMAIL PROTECTED]

Retraction:
I had two errors in my header after fixing these errors I can access
$_POST varibles in both 4.0.6 and 4.2.3.
It appears that some multipart/form-data parsers are more forgiving
than others :) 

POST /cgi-bin/XXXXXXX HTTP/1.1
Authorization: Basic XXXXXXXX
Content-Type: multipart/form-data;
boundary=XXXssxvnjhpdqdxvcrastvybcwvmgnykrXXX
User-Agent: Java1.4.0
Host: XXX.XXX.XXX.X:XXX
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-length: 142
--XXXssxvnjhpdqdxvcrastvybcwvmgnykrXXX
Content-Disposition: form-data; name="fieldName"

fieldValue
--XXXssxvnjhpdqdxvcrastvybcwvmgnykrXXX--

------------------------------------------------------------------------

[2002-09-18 04:26:10] [EMAIL PROTECTED]

I am using PHP 4.2.3 with Apache/1.3.20, RedHat 7.2.

When uploading files with enctype="multipart/form-data" I experienced
the next problem: all files of types other then text/plain or text/html
had been corrupted, e.g., the first 4 lines of a gif picture were:

GIF89a% wered.gif"
Content-Type: image/gif

GIF89a%
, that is, the file name was "ra-powered.gif", a part of this,
content-type and an empty line from the posted data had been added to
the beginning of the file. The following image data remained intact.
The preceding post variable (as phpinfo() listed:

_POST["submit-type"] updat  - must be "update"
_FILES["picture"]    Array
(
    [name] => ra-powered.gif
    [type] => image/gif
    [tmp_name] => /tmp/phpjsjZRj
    [error] => 0
    [size] => 3810
)
_SERVER["CONTENT_TYPE"] multipart/form-data;
boundary=---------------------------7d213414b022e  

) had been corrupt (1-4 last characters cut off, depends on the
content-type). All other variables were ok.
The problem is only with IE 6.0, Opera, Netscape6 and Konqueror are ok.
Tests with PHP 4.2.0 and 4.2.2 show the same results.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/17958

-- 
Edit this bug report at http://bugs.php.net/?id=17958&edit=1

Reply via email to