PHP 4.0 Bug #9144 Updated: /tmp/php?????? file created without reference in POST array
| From: | sniper@php.net | Date: | Wed, 14 Feb 2001 11:32:52 +0000 |
| Subject: | PHP 4.0 Bug #9144 Updated: /tmp/php?????? file created without reference in POST array | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46548@lists.php.net to get a copy of this message | ||
ID: 9144
Updated by: sniper
Reported By: david@littlesystems.com.au
Old-Status: Open
Status: Closed
Bug Type: Filesystem function related
Assigned To:
Comments:
The files are of 0 bytes long and are deleted after script finishes by PHP itself.
The cleaning should work in 4.0.4pl1 so please upgrade.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-02-07 06:29:01] david@littlesystems.com.au
Example HTML file upload form:
<FORM ENCTYPE="multipart/form-data" ACTION="./phpscript.php" METHOD=POST>
<INPUT NAME="myfile" TYPE="file">
<INPUT TYPE="submit">
</FORM>
If a user puts a false reference to a file in that filebox and then clicks the submit button, a
"/tmp/php??????" temp file is actually created. But, the reference to that temp file in
the HTTP_POST_FILES["myfile"]["tmp_name"] says "none". This means you
cannot unlink() these files normally.
Configure line: './configure' '--with-apxs'
'--with-pgsql=/var/lib/pgsql' '--enable-track-vars' '--with-ftp'
'--enable-trans-sid'
regards,
David
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9144&edit=2