Bug #70243 [Opn->Nab]: Notice when no file uploaded

From: Date: Wed, 12 Aug 2015 17:38:52 +0000
Subject: Bug #70243 [Opn->Nab]: Notice when no file uploaded
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195168@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 Updated by: cmb@php.net Reported by: scott dot vivian at gmail dot com Summary: Notice when no file uploaded -Status: Open +Status: Not a bug Type: Bug -Package: Unknown/Other Function +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: > 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>. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#195168) next »