#41985 [Opn->Bgs]: rename doesn't work
| From: | johannes@php.net | Date: | Thu, 12 Jul 2007 22:50:59 +0000 |
| Subject: | #41985 [Opn->Bgs]: rename doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115009@lists.php.net to get a copy of this message | ||
ID: 41985
Updated by: johannes@php.net
Reported By: marc dot bau at gmx dot net
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows
PHP Version: 5.2.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
\t has a special meaning in strings with double quotes.
Previous Comments:
------------------------------------------------------------------------
[2007-07-12 22:26:51] marc dot bau at gmx dot net
Description:
------------
The "rename" in PHP doesn't work as expected on Windows.
Reproduce code:
---------------
<?php
rename("C:\temp\tmp_file.txt.new", "C:\temp\tmp_file.txt");
?>
Expected result:
----------------
successful rename completed.
Actual result:
--------------
1. rename isn't working
2. C:\temp\tmp_file.txt is not replaced with C:\temp\tmp_file.txt.new
3. C:\temp\tmp_file.txt.new not moved to C:\temp\tmp_file.txt
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41985&edit=1