From:             marc dot bau at gmx dot net
Operating system: Windows
PHP version:      5.2.3
PHP Bug Type:     Filesystem function related
Bug description:  rename doesn't work

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 bug report at http://bugs.php.net/?id=41985&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41985&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41985&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41985&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41985&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41985&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41985&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41985&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41985&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41985&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41985&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41985&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41985&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41985&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41985&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41985&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41985&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41985&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41985&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41985&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41985&r=mysqlcfg

Reply via email to