PHP 4.0 Bug #5375: File upload problems
| From: | michael dot eisele dot me at bayer-ag dot de | Date: | Wed, 05 Jul 2000 13:29:16 +0000 |
| Subject: | PHP 4.0 Bug #5375: File upload problems | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-23459@lists.php.net to get a copy of this message | ||
From: michael.eisele.me@bayer-ag.de
Operating system: Windows NT 4.0 SP5
PHP version: 4.0.1pl2
PHP Bug Type: Scripting Engine problem
Bug description: File upload problems
Scripts that used the file upload fuction via HTTP form worked fine in PHP3. Now file upload
misbehaves in Version 4.01 as follows:
1. The variable userfile[] contains double backslahes in file names (e.g. c:\\temp\\php2, should be
c:\temp\php2).
This Bug has already been reported.
2. If the bug in userfile[] is fixed by a regular expression replace the file cannot be copied
anyway. A call to copy( $userfile[0], $dest) fails. The file referenced in $userfile[0] is present
in the temp dir. The same script worked in PHP 3.
3. The script/PHP does not delete the temporary file with the form data in the temp dir. The
uploaded file are deleted in the temp dir correctly.
Thanks for any help.
Michael Eisele