Bug #16747 [Csd]: Empty file upload field results in "No file uploaded in Unknown on line 0" warn
Edit report at https://bugs.php.net/bug.php?id=16747&edit=1
ID: 16747
Updated by: rasmus@php.net
Reported by: hannes dot dorn at ibit dot at
Summary: Empty file upload field results in "No file uploaded
in Unknown on line 0" warn
Status: Closed
Type: Bug
Package: Output Control
Operating System: Windows 2000 SP2, Apache 1.3.22
PHP Version: 4.2.0
-Assigned To:
+Assigned To: rasmus
Block user comment: N
Private report: N
New Comment:
If you look at the PHP 5.4.x code you will see that notice in main/rfc1867.c but
it looks like this:
#if DEBUG_FILE_UPLOAD
sapi_module.sapi_error(E_NOTICE, "No file uploaded");
#endif
DEBUG_FILE_UPLOAD is only turned on if you build a DEBUG version of PHP.
Previous Comments:
------------------------------------------------------------------------
[2012-11-10 16:00:12] 7894561230 at list dot ru
PHP 5.4.8 - this bug is present again, please fix it. It was not here in 5.3.x.
------------------------------------------------------------------------
[2012-01-19 17:06:26] ava3ar at gmail dot com
In 5.4 this bug seems to be back
------------------------------------------------------------------------
[2010-09-19 05:40:39] ga972 at yahoo dot com
I am using PHP 5.3.3 and we are still seeing this error. If it was submitted in the snapshot in
2002 did someone put this bug back or was it just never committed?
------------------------------------------------------------------------
[2004-10-13 16:54:12] vitek at 4rome dot ru
I am using php5.0.2 on a Linux platform and I am having this bug, too. It is annoying (a notice
appears, I also cannot send any headers) and I really don't want to develope with
error_reporting level different from E_ALL as well as using output bufferring just to avoid a
problem with headers.
Please indicate if it is a strange behaviour to php5.0.2 or this issue hasn't been treated yet
in this lovely version of php. I hope most of developers would agree that it IS more a bug rather
than a feature (even if it is represented as a feature).
------------------------------------------------------------------------
[2002-07-16 19:03:19] m at balieu dot net
I fully support the dropping of the "Notice".
Balieu
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=16747
--
Edit this bug report at https://bugs.php.net/bug.php?id=16747&edit=1
Thread (10 messages)