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 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:
37 - 27 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 14:01:28 2024 UTC