Edit report at http://bugs.php.net/bug.php?id=16747&edit=1

 ID:                 16747
 Comment by:         ga972 at yahoo dot com
 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
 Block user comment: N

 New Comment:

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?


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2002-06-06 04:19:50] ses...@php.net

This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------
[2002-06-06 04:06:28] irik at irik dot org

If the development of PHP were a democracy (and it's not far off, I
reckon :), I would vote (and maybe even campaign) to have this notice
removed.  Whether or not the user chooses to upload a file or is
required to is a matter of application design and the sole responsibilty
of the developer to address.  What if a file upload is designed to
optional?  Why do I need to change the error reporting level on the
server in order to suppress on Notice that is if fact completely useless
to both the developer and the user.  What benefit is it to the developer
or the administrator to have notice in the logs that the user did not
upload a file in a provided file box?



I vote to drop the "Notice" and let it go.



Irik

------------------------------------------------------------------------
[2002-04-23 18:29:00] sni...@php.net

Not a bug but expected behaviour. It's changed to E_NOTICE

level now in CVS (for both HEAD and upcoming 4.2.1 release)



Just set your error_reporting level.



--Jani



------------------------------------------------------------------------


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

    http://bugs.php.net/bug.php?id=16747


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=16747&edit=1

Reply via email to