php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29394 Cant delete folder with name 2003
Submitted: 2004-07-26 21:03 UTC Modified: 2004-08-31 05:58 UTC
From: m at shnee dot com Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 4.3.7 OS: winxp pro
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: m at shnee dot com
New email:
PHP Version: OS:

 

 [2004-07-26 21:03 UTC] m at shnee dot com
Description:
------------
Its funny, when a directory is named "2003", I am unable to rmdir or rename it.  If I change the folder name (using windows explorer) to 2005, then I can run rmdir and rename with no problem.

The return error is Permission Denied.  But that isnt the issue as I can create a 2003 folder and 2005 folder at the same time, and I get the same problem.  I can only edit/delete 2005, and 2003 always gives permission denied no matter what.

I realize its possible this could be a windows issue.

Just curious don't ya think?

Reproduce code:
---------------
rmdir("2003");
rename ("2003", "2002);

Expected result:
----------------
I expect it to delete/rename the directory.

Actual result:
--------------
Warning: rmdir(2003): Permission denied in C:\Documents and Settings\Mark\Desktop\www\new_pics\index.php on line 401

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-31 05:58 UTC] davey@php.net
Tested in WinXP Home SP2, both functions work fine for me.

- Davey
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC