|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73063 Crash when input type="file" is empty
Submitted: 2016-09-11 17:01 UTC Modified: 2016-09-11 17:10 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: pl dot lamballais at flashover dot fr Assigned:
Status: Open Package: Session related
PHP Version: 7.0.10 OS: Debian8
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: pl dot lamballais at flashover dot fr
New email:
PHP Version: OS:


 [2016-09-11 17:01 UTC] pl dot lamballais at flashover dot fr
Segmentation fault (11) when using an empty input file html object.

Test script:
echo "<input type=\"hidden\" value=\"myForm\" name=\"";  
echo ini_get("");
echo "\">\n";
echo "<input type=\"file\" name=\"tnews_img\" id=\"liste_upload\">\n";

When you select a file and upload, it works. But if you don't select file and submit, you get  a "Segmentation fault (11)"  in Apache.

Was OK on PHP5.
The problem came from the hidden file. With only the input type file, it works.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-11 17:10 UTC]
This is likely a duplicate of bug #72724, which has been fixed in PHP 7.0.11.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jan 21 10:01:23 2020 UTC