Bug #3288: PHP 3.014 looses uploaded files.

From: Date: Sun, 23 Jan 2000 21:40:01 +0000
Subject: Bug #3288: PHP 3.014 looses uploaded files.
Groups: php.dev 
Request: Send a blank email to php-dev+get-14859@lists.php.net to get a copy of this message
From: rusty@alwaysthinking.com Operating system: Windows 98 PHP version: 3.0.14 PHP Bug Type: Other Bug description: PHP 3.014 looses uploaded files. Form POST related: Using the Windows compiled binaries. Version 3.0.14 gives a file name for uploaded files, but there is no file there. Version 4 Beta 3 works fine. PHP 3.0.14 output: Warning: Unable to open 'C:\\WINDOWS\\TEMP\\php2' for reading: Unknown error in webpages/FileUtil.php3 on line 16 Warning: Unlink failed (Permission denied) in webpages/FileUtil.php3 on line 17 File uploaded as: autoexec.bat PHP 4 output: File uploaded as: autoexec.bat Code Segment: <? //check for file upload if ( 1 > strlen( $path ) ) { $path = "."; } else { $path = rawurldecode( $path ); } if(isset($uploadedFile)) { $generatedFileName = $path; $generatedFileName .= "/"; $generatedFileName .= $uploadedFile_name; copy( $uploadedFile, $generatedFileName ); unlink( $uploadedFile ); echo "<H2>File uploaded as: ", $uploadedFile_name, "</H2>"; } ?>

« previous php.dev (#14859) next »