From: thu at nykredit dot dk Operating system: Fedora 2 PHP version: 5.0.0 PHP Bug Type: *General Issues Bug description: $_FILES is empty!
Description: ------------ I cannot get any content into $_FILES it is recognized as an array - but an empty array. I have set (after having tried default settings): upload_tmp_dir=/var/www/uploads open_basedir=/var/www file_uploads=on register_globals=on I have also tried to chmod 777 on the upload dir!. Reproduce code: --------------- FILE1: upload.php <form enctype="multipart/form-data" action="upload_submit.php" method="POST"> <input type=file name=thufile> <input type=submit> </form> FILE2: upload_submit.php <?php print_r($_FILES) ?> Expected result: ---------------- SOMETHING LIKE THIS... Array ( [thufile] => Array ( [name] => mirror.html [type] => text/html [tmp_name] => /tmp/phpAAFggh [size] => 38391 ) ) Actual result: -------------- Array() -- Edit bug report at http://bugs.php.net/?id=29634&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29634&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29634&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29634&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29634&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29634&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29634&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29634&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29634&r=support Expected behavior: http://bugs.php.net/fix.php?id=29634&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29634&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29634&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29634&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29634&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29634&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29634&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29634&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29634&r=float
