Doc #73997 [Opn]: Incorrect documentation

From: Date: Wed, 25 Jan 2017 16:57:09 +0000
Subject: Doc #73997 [Opn]: Incorrect documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14372@lists.php.net to get a copy of this message
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)

« previous php.doc.bugs (#14372) next »