php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32280 Renaming a folder to same name as file results in error
Submitted: 2005-03-11 22:32 UTC Modified: 2005-03-11 23:42 UTC
From: tss24 at cornell dot edu Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.0.3 OS: WinXP Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tss24 at cornell dot edu
New email:
PHP Version: OS:

 

 [2005-03-11 22:32 UTC] tss24 at cornell dot edu
Description:
------------
When renaming a folder to same name as file in same path, an error occurs.

example:

folder: test1
folder: test2
file01: file1
file02: file2

renaming test1 to file1 (even though it's still a folder on the system) causes an error.

Reproduce code:
---------------
rename($oldname,$newname);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-11 23:37 UTC] pollita@php.net
No duh.
 [2005-03-11 23:42 UTC] tss24 at cornell dot edu
Crap! Too freaking tired of course this isn't a bug, it doesn't make sense! 

In theory it does though... ah well, lack of sleep didn't help here. Delete this one!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC