From: [EMAIL PROTECTED] Operating system: Win2K PHP version: 4.2.3 PHP Bug Type: Unknown/Other Function Bug description: function is_uploaded_file returns wrong value
According to the documentation, the function "is_uploaded_file" is supposed to return "true" if successful. However it is returning 0 or false even though the file upload was successful according to the $_FILES['filename']['error'] which is present in 4.2.3. I'm going to assume that the function is returning the value of the error code (in this case, 0) which is very confusing. The file was uploaded via HTTP POST. In summary, this function should not return the value of $_FILES['filename']['error']. -- Edit bug report at http://bugs.php.net/?id=20322&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20322&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20322&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20322&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20322&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20322&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20322&r=support Expected behavior: http://bugs.php.net/fix.php?id=20322&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20322&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20322&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20322&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20322&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20322&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20322&r=isapi
