Doc #73997 [Opn]: Incorrect documentation
Edit report at https://bugs.php.net/bug.php?id=73997&edit=1
ID: 73997
User updated by: tim dot aagaard at gmail dot com
Reported by: tim dot aagaard at gmail dot com
Summary: Incorrect documentation
Status: Open
Type: Documentation Problem
Package: Documentation problem
Operating System: NA
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
This behavior should be noted somewhere in the documentation
Previous Comments:
------------------------------------------------------------------------
[2017-01-25 16:55:49] tim dot aagaard at gmail dot com
Description:
------------
"rename â Renames a file or directory"
"Attempts to rename oldname to newname, moving it between directories if necessary. If newname
exists, it will be overwritten."
Rename will not overwrite a directory that already exists.
Test script:
---------------
mkdir('a/', 0777);
mkdir('b/', 0777);
rename('a/', 'b/');
Actual result:
--------------
Warning: rename(a/,b/): File exists
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73997&edit=1
Thread (3 messages)