Bug #52176 [Opn->Bgs]: unlink() cannot delete symbolic link which points to a directory

From: Date: Tue, 15 Nov 2011 15:55:07 +0000
Subject: Bug #52176 [Opn->Bgs]: unlink() cannot delete symbolic link which points to a directory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165169@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52176&edit=1

 ID:                 52176
 Updated by:         felipe@php.net
 Reported by:        o_shes01 at uni-muenster dot de
 Summary:            unlink() cannot delete symbolic link which points to
                     a directory
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   Windows Vista SP2
 PHP Version:        5.3.2
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php




Previous Comments:
------------------------------------------------------------------------
[2010-06-24 19:37:57] o_shes01 at uni-muenster dot de

Description:
------------
unlink($fname) fails if the file named by $fname is a symbolic link which points to a directory. 

Such a link (not the directory which it points to!) can however be deleted via
"rmdir($fname)", which is also a bug (IMHO). 

Note: if the link points to a regular file (not directory), then unlink works as expected (deletes
the link, not the file pointed to). 




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=52176&edit=1


Thread (8 messages)

« previous php.bugs (#165169) next »