php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11670 Apache multipart POST weirdness
Submitted: 2001-06-25 11:21 UTC Modified: 2001-10-20 23:32 UTC
From: fcaprioli at inwind dot it Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.6 OS: Linux 2.2
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: fcaprioli at inwind dot it
New email:
PHP Version: OS:

 

 [2001-06-25 11:21 UTC] fcaprioli at inwind dot it
Using MSIE 4.01, or 5.5SP1 (didn't try other versions) as a client to perform a multipart/mixed text/file upload with multiple files, there are some serious problem under php 4.06 + apache 1.3.20, statically builded on a linux glibc 2.1.3/egcs 1.1.2.

In a "--enable-inline-optimization" build, apache segfaults regardless of configuration option (tried almost any mix of these, with or without magic quotes, --enable-mbstr-enc-trans etc)

Instead, in build 
./configure' '--with-mysql=/usr/local/' '--with-gd' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-curl' '--with-zlib' '--with-apache=../apache_1.3.20'
it almost works, as upload works normally, but php fails to set in $HTTP_POST_VARS any variable that comes inside the form after the file selector.
so

<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="var1" value="1">
<input type="hidden" name="var2" value="2">
<input type="file" name="file[]">
<input type="file" name="file[]">
<input type="hidden" name="var3" value="3">
<input type="submit" name="var4" value="4">
</form>

would fail to set $HTTP_POST_VARS["var3"] and $HTTP_POST_VARS["var4"]

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-20 23:32 UTC] sniper@php.net
This is fixed in CVS.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC