php.net |  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: 2020-03-15 04:22 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: pl dot lamballais at flashover dot fr Assigned: cmb (profile)
Status: No Feedback Package: Session related
PHP Version: 7.0.10 OS: Debian8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
38 + 42 = ?
Subscribe to this entry?

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



Test script:
---------------
echo "<input type=\"hidden\" value=\"myForm\" name=\"";  
echo ini_get("session.upload_progress.name");
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-11 17:10 UTC] nikic@php.net
This is likely a duplicate of bug #72724, which has been fixed in PHP 7.0.11.
 [2020-03-06 11:17 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-03-06 11:17 UTC] cmb@php.net
Does that still happen with any of the supported PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2020-03-15 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 11:05:50 2023 UTC