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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 23:01:33 2025 UTC