Bug #54951 [NEW]: Temporary Files Are NOT Deleted

From: Date: Sun, 29 May 2011 16:08:49 +0000
Subject: Bug #54951 [NEW]: Temporary Files Are NOT Deleted
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6666@lists.php.net to get a copy of this message
From: Operating system: Windows 2003 PHP version: 5.3.6 Package: Documentation problem Bug Type: Bug Bug description:Temporary Files Are NOT Deleted Description: ------------ In http://www.php.net/manual/en/features.file-upload.post-method.php "The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed." This is blatantly wrong. PHP does not automatically remove any uploaded .tmp file from the temporary directory. PHP 5.3.1 and 5.3.6 were tested specifically to confirm this behavior is not as documented. Test script: --------------- test.php, placed on website: <form method="post" enctype="multipart/form-data"> <input name="myfile" type="file" /> <input type="submit" /> </form> Expected result: ---------------- While monitoring the temporary directory, essentially nothing should happen. Actual result: -------------- Each click of the Submit button causes an additional file to be added to the temporary directory. -- Edit bug report at http://bugs.php.net/bug.php?id=54951&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54951&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54951&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54951&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54951&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54951&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54951&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54951&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54951&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54951&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54951&r=support Expected behavior: http://bugs.php.net/fix.php?id=54951&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54951&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54951&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54951&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54951&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54951&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54951&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54951&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54951&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54951&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54951&r=mysqlcfg

« previous php.doc.bugs (#6666) next »