php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7299 Crash when trying to upload a file
Submitted: 2000-10-17 19:27 UTC Modified: 2000-10-18 03:47 UTC
From: david at guerizec dot net Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0 Latest CVS (17/10/2000) OS: Linux RedHat 7.0
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david at guerizec dot net
New email:
PHP Version: OS:

 

 [2000-10-17 19:27 UTC] david at guerizec dot net
Hi,
I'm a Midgard core developper and since we upgraded to PHP 3.0.17, Apache crashes when submitting the following form.
I found a bug in functions/mime.c (rev 1.63) and I saw it's been corrected in the CVS (rev 1.64), but only on enctype="multipart/form-data" forms not containing any 'file' input: when I upgraded to the current CVS version of mime.c, I still couldn't submit a multipart/form-data containing a 'file' input.

I tried to come back to functions/mime.c (rev 1.61) and it works well.

I use Midgard 1.4b5f (the latest in CVS) from source, and Apache 1.3.12-25 from RPM.

<form name="form" action="<? echo $PHP_SELF; ?>" method="POST" ENCTYPE="multipart/form-data">
<input type= "hidden" name="whattodo" value="create">
<input type="text" name="title" value="" size=20>
<input type="text" name="name" value="" >
<input type="text" name="mimetype" value="" >
<input type="hidden" name="MAX_FILE_SIZE" value="2097152">
<input type="file" name="blob">
<input type="submit" name="submit" value="Submit">
</form>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-18 03:47 UTC] sniper@php.net
User reported problem solved.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 08:01:30 2024 UTC