# 5.0.0RC2: Why is DEBUG_FILE_UPLOAD always on now?

- Thread: https://externals.io/message/9817
- Original archive: https://news-web.php.net/php.internals/9817
- Started by Michael Sisolak on 2004-05-11T14:48:41+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #9817 — Michael Sisolak — 2004-05-11T14:48:41+00:00

URL: https://externals.io/message/9817#9817

For 5.0.0RC2 in main/rfc1867.c this code was introduced:

#define DEBUG_FILE_UPLOAD ZEND_DEBUG

As a result even Release builds of 5.0.0RC2 are reporting file upload
errors as `E_NOTICE` errors.  This includes when a form is submitted with
an optional file upload field that has not been specified (you always
get the error "Notice: No file uploaded in Unknown on line 0" which
can't be disabled without lowering the error level).

Was this change made on purpose, or was leaving this line in a mistake?
 It would seem that something like:

#if ZEND_DEBUG
#define DEBUG_FILE_UPLOAD
#else
#undef DEBUG_FILE_UPLOAD
#endif

would make more sense instead.  Having a form with an empty upload
field shouldn't be a PHP system level error should it?  Isn't that
really something for the script to handle?

Michael Sisolak
msisolak@yahoo.com


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover

---

## #9818 — Derick Rethans — 2004-05-11T15:31:44+00:00

URL: https://externals.io/message/9817#9818 · In reply to: #9817

> would make more sense instead.  Having a form with an empty upload
> field shouldn't be a PHP system level error should it?  Isn't that
> really something for the script to handle?

Yes, the #ifdef's should be an #if... then all is well. I just committed
a fix to CVS, can you please verify if that fixes it?

regards,
Derick
