From: mshuffle at bournemouth dot ac dot uk Operating system: redhat linux server PHP version: Irrelevant PHP Bug Type: Unknown/Other Function Bug description: Uploading on Windows
Description: ------------ My Web Host is running PHP 4.3.11-dev on redhat linux. When windows users try to upload files to the server, it takes the full file path C:\fullFilePath\filename.ext.As a result the file is not uploaded and therefore isn't working. The code was working on a previous version of PHP. The host has just upgraded their version of PHP. Is this a stable release? Your PHP version drop menu doesn't have this version. Reproduce code: --------------- if ($error == "") { if (is_uploaded_file($imgtemp)){ move_uploaded_file($imgtemp, fusion_basedir."fusion_images/".$imgname); chmod(fusion_basedir."fusion_images/".$imgname,0644); echo "<center><br> <img src='".fusion_basedir."fusion_images/$imgname'><br> Expected result: ---------------- a file uploaded to the server. Actual result: -------------- C:\\WINNT\\Profiles\\mshuffle\\Desktop\\street.jpg -- Edit bug report at http://bugs.php.net/?id=31985&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31985&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31985&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31985&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31985&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31985&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31985&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31985&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31985&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31985&r=support Expected behavior: http://bugs.php.net/fix.php?id=31985&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31985&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31985&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31985&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31985&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31985&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31985&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31985&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31985&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31985&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31985&r=mysqlcfg