#48771 [NEW]: rename() between drives error: No error
[email protected] ("bugs at thundercall dot dk")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
From: bugs at thundercall dot dk Operating system: Windows XP PHP version: 5.3CVS-2009-07-02 (snap) PHP Bug Type: Filesystem function related Bug description: rename() between drives error: No error Description: ------------ When using rename() from one drive to another drive PHP5.3 & Snap 5.3.1 2009-07-02 fails with error: "No error" and doesn't move the file... Reproduce code: --------------- <?php $old_file = "C:\\Temp\\file.txt"; $new_file = "D:\\Temp\\newfile.txt"; $handle = rename($old_dir.$old_file, $new_dir.$new_file); if ($handle) print "Wuhoo!!"; else print "Do'h!"; // $handle = rename($new_dir.$new_file, $old_dir.$old_file); // restore for reruns ?> Expected result: ---------------- Wuhoo!! Actual result: -------------- Warning: rename(C:\Temp\file.txt,D:\Temp\newfile.txt) [function.rename]: No error in D:\home\main\test\rename\index.php on line 6 Do'h! -- Edit bug report at http://bugs.php.net/?id=48771&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48771&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48771&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48771&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48771&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48771&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48771&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48771&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48771&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48771&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48771&r=support Expected behavior: http://bugs.php.net/fix.php?id=48771&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48771&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48771&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48771&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48771&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48771&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48771&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48771&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48771&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48771&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48771&r=mysqlcfg