Bug #73063 [Opn->Fbk]: Crash when input type="file" is empty
| From: | cmb@php.net | Date: | Fri, 06 Mar 2020 11:17:17 +0000 |
| Subject: | Bug #73063 [Opn->Fbk]: Crash when input type="file" is empty | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225925@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73063&edit=1
ID: 73063
Updated by: cmb@php.net
Reported by: pl dot lamballais at flashover dot fr
Summary: Crash when input type="file" is empty
-Status: Open
+Status: Feedback
Type: Bug
Package: Session related
Operating System: Debian8
PHP Version: 7.0.10
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Does that still happen with any of the supported PHP versions[1]?
[1] <https://www.php.net/supported-versions.php>
Previous Comments:
------------------------------------------------------------------------
[2016-09-11 17:10:34] nikic@php.net
This is likely a duplicate of bug #72724, which has been fixed in PHP 7.0.11.
------------------------------------------------------------------------
[2016-09-11 17:01:55] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73063&edit=1