ID:               10700
 Comment by:       andrew at bramp dot freeserve dot co dot uk
 Reported By:      djanix at hotmail dot com
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: win32
 PHP Version:      4.0 Latest CVS (2001-05-07)
 New Comment:

It appears this bug has been fixed. Its working fine on 4.3.4


Previous Comments:
------------------------------------------------------------------------

[2001-10-23 15:41:53] djanix at hotmail dot com


  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...


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

[2001-10-23 14:53:34] [EMAIL PROTECTED]

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 at hotmail dot 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] [EMAIL PROTECTED]

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 at hotmail dot 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

Reply via email to