From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.2.1 PHP Bug Type: Output Control Bug description: PHP error mesage "File not uploaded" is unclear and misleading.
Visit: http://www.groupit.org/contribute/demonstrationarea/contenttypes/documents/b.21.html On this page there is one required file upload field, and a second optional field (for an image that can be automatically scaled and placed within the summary of the contribution). When a document file is specified, and an image is not, the error "File not uploaded" is stored within $php_errormsg. Presumably this is because the contrib_image variable is not set. Since this is not truly an error condition I think PHP should NOT log an error for this event. I imagine there are many other PHP-based sites with optional file upload fields that are now generating spurious error messages to site administrators (grin). This functionality was not evident in 4.1.2 or earlier versions. The $php_errormsg should contain actual errors only. Thanks for your time - and thanks for creating such a great development language! -- Edit bug report at http://bugs.php.net/?id=17530&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17530&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17530&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17530&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17530&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17530&r=support Expected behavior: http://bugs.php.net/fix.php?id=17530&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17530&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17530&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17530&r=globals