|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
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.

<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">

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


Add a Patch

Pull Requests

Add a Pull Request


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


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 21:01:31 2024 UTC