|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-01-25 16:57 UTC] tim dot aagaard at gmail dot com
[2017-01-25 22:41 UTC] cmb@php.net
-Summary: Incorrect documentation
+Summary: rename() won't overwrite existing directory
-Package: Documentation problem
+Package: Filesystem function related
[2017-04-05 19:02 UTC] peehaa@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: peehaa
[2017-04-05 19:02 UTC] peehaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
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