From: erikvernsmith at yahoo dot com Operating system: Mac OS 10.6.1 PHP version: 5.3.0 PHP Bug Type: Filesystem function related Bug description: $_POST is empty with large file uploads
Description: ------------ I set upload_max_filesize in php.ini to 64M I'm using a simple html form to post/upload a file to a simple php script. If I upload files smaller than 8MB everything works fine. If I upload a file larger than 8MB, print_r( $_POST ) and print_r( $_FILES ) are empty. Important note: 8MB is not a magic number. On my localhost 10MB files do upload, but 50MB files do not. 8MB files will not work on my remote website, but 7MB files will work. Reproduce code: --------------- complete HTML file: <form enctype="multipart/form-data" action="simpleuploadtest.php" method="POST"> <input type="text" name="mytitle" value="junkjunk and more junk" /> Choose a file to upload: <input name="uploadedfile" value="" type="file" /><br /> <input type="submit" value="Upload File" /> </form> complete PHP file: <?php echo 'testing123<BR><BR>'; echo $_POST['mytitle']; echo '<BR><BR>'; print_r( $_POST ); echo '<BR><BR>'; print_r( $_FILES ); ?> Expected result: ---------------- I expect the $_POST and $_FILES arrays to have contents, like this: testing123 junkjunk and more junk Array ( [mytitle] => junkjunk and more junk ) Array ( [uploadedfile] => Array ( [name] => junk.bin [type] => application/macbinary [tmp_name] => /private/var/tmp/php0tupN2 [error] => 0 [size] => 10485760 ) ) Actual result: -------------- The $_POST and $_FILES arrays are empty, like this: testing123 Array ( ) Array ( ) -- Edit bug report at http://bugs.php.net/?id=49570&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49570&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49570&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49570&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49570&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49570&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49570&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49570&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49570&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49570&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49570&r=support Expected behavior: http://bugs.php.net/fix.php?id=49570&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49570&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49570&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49570&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49570&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49570&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49570&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49570&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49570&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49570&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49570&r=mysqlcfg