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
[EMAIL PROTECTED]


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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to