php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8915 zero length file created on file upload with no file, temp file is not deleted
Submitted: 2001-01-25 15:56 UTC Modified: 2001-01-25 19:58 UTC
From: danbeck at dealnews dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.3pl1 OS: linux 2.2.x (redhat 6.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: danbeck at dealnews dot com
New email:
PHP Version: OS:

 

 [2001-01-25 15:56 UTC] danbeck at dealnews dot com
If you attempt to post a multipart/form-data form without supplying a file in the browser, php creates a zero length temp file, but does not remove it after script execution.

Form Example:

<FORM ACTION="index.php" METHOD="post" ENCTYPE="multipart/form-data">
<INPUT TYPE="file" NAME="file">
</FORM>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-25 19:58 UTC] sniper@php.net
This is fixed in PHP 4.0.4pl1.

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 21:01:31 2025 UTC