From:             melker at kuh dot at
Operating system: winxp
PHP version:      4.3.8
PHP Bug Type:     Feature/Change Request
Bug description:  rename() don't overwrite existing files at windows (as at linux)

Description:
------------
Hi,

rename ( 'file1', 'file2' ); 

behaviour at linux:

If there is a 'file2', the file2 will be overwritten by file1.

at windows xp:
If there is a 'file2', a warning is given and the file2 isn't overwritten
with file1.

Reproduce code:
---------------
rename ( 'file1', 'file2' ); 



Expected result:
----------------
I would expect, that rename() works with the same behaviour at all
operating systems.

So, please overwrite existing files or give a warning at all os.

Actual result:
--------------
rename()
at linux, existing files will be overwritten, at winxp, the rename-process
fails, a php-warning is given.

-- 
Edit bug report at http://bugs.php.net/?id=29812&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29812&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29812&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29812&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29812&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29812&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29812&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29812&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29812&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29812&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29812&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29812&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29812&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29812&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29812&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29812&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29812&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29812&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29812&r=float

Reply via email to