Bug #10700 Updated: unlink() doesn't like win/unc names
| From: | djanix at hotmail dot com | Date: | Tue, 23 Oct 2001 19:41:54 +0000 |
| Subject: | Bug #10700 Updated: unlink() doesn't like win/unc names | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68875@lists.php.net to get a copy of this message | ||
ID: 10700
User updated by: djanix@hotmail.com
Reported By: djanix@hotmail.com
Status: Open
Bug Type: Feature/Change Request
Operating System: win32
PHP Version: 4.0 Latest CVS (2001-05-07)
New Comment:
yeah but a call to standard unlink() will work...
unlink( "//rhodes/d$/test.txt" );
from the same or another machine works just fine.
i suppose u'r saying that the '//' will signal a wrapper to call the proper unlink
code, that's different, but it still doesn't seem like a feature request, when a
previously added feature was 'unc pathname support'...
but oh well, i can fix with a wrapper around php unlink() that can use exec() to get the job done,
but that's obviously not a great solution...
Previous Comments:
------------------------------------------------------------------------
[2001-10-23 14:53:34] sander@php.net
It's not a local, regular file. You can compare it to something like http://host/file.txt
To delete a file like that, you need some network-stuff to handle the connection. That is not (yet)
implemented in PHP.
------------------------------------------------------------------------
[2001-10-23 14:46:35] djanix@hotmail.com
how is it not a real filename ?!
[\\becker\c$\winnt\system32\dns]dir
Directory of \\becker\c$\winnt\system32\dns\*
10/19/2001 17:57 <DIR> .
10/19/2001 17:57 <DIR> ..
10/19/2001 17:57 <DIR> backup
9/18/2001 10:32 <DIR> generated
8/12/2001 15:58 72,681 boot
5/07/2001 1:43 61,681 BOOT.bak
6/01/2001 11:48 380 BOOT.template
8/12/2001 15:59 1,391 cache.dns
10/19/2001 17:57 0 dns.log
...
just in case there was some confusion...
------------------------------------------------------------------------
[2001-10-23 14:31:29] sander@php.net
The problem is that //becker/c$/winnt/system32/dns/BOOT is not a real filename.
Changing to feature request.
------------------------------------------------------------------------
[2001-05-07 07:12:13] djanix@hotmail.com
unlink( '//becker/c$/winnt/system32/dns/BOOT' );
or any other file with unc names gets
Warning: Unlink failed (Invalid argument)
THANKS FOR UNC SUPPORT in 4.0.6 !!!
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10700&edit=1