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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 + 33 = ?
Subscribe to this entry?

 
 [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: Sat May 04 12:01:31 2024 UTC