Bug #70243 [Nab]: Notice when no file uploaded
| From: | scott dot vivian at gmail dot com | Date: | Thu, 13 Aug 2015 17:09:14 +0000 |
| Subject: | Bug #70243 [Nab]: Notice when no file uploaded | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195187@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70243&edit=1
ID: 70243
User updated by: scott dot vivian at gmail dot com
Reported by: scott dot vivian at gmail dot com
Summary: Notice when no file uploaded
Status: Not a bug
Type: Bug
Package: *Web Server problem
Operating System: Debian 8
PHP Version: 7.0Git-2015-08-11 (Git)
Block user comment: N
Private report: N
New Comment:
Apologies, yes I was running the debug version. Works fine with debug disabled.
Previous Comments:
------------------------------------------------------------------------
[2015-08-12 17:38:52] cmb@php.net
> you are using a debug version PHP ...
Apparently so:
<https://github.com/php/php-src/blob/php-7.0.0beta3/main/rfc1867.c#L1001-L1003>.
------------------------------------------------------------------------
[2015-08-12 06:46:38] laruence@php.net
you are using a debug version PHP ...
------------------------------------------------------------------------
[2015-08-11 22:35:00] scott dot vivian at gmail dot com
Description:
------------
To reproduce:
1. Make a form that has a "file" input type.
2. Submit the form without a file (e.g. fill in the other fields).
(Using the PHP7 Vagrant box with git updated to the latest master branch.)
Test script:
---------------
<?php
if (!empty($_POST)) {
var_dump($_POST);
}
?>
<form enctype="multipart/form-data" method="post">
<p><input type="text" name="name">
<p><input type="file" name="file">
<p><input type="submit" value="Save">
</form>
Actual result:
--------------
A notice that no file was supplied.
Notice: No file uploaded in Unknown on line 0
A very old bug #32446 seems to imply this has happened before so it may be a regression.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70243&edit=1