#45228 [Fbk->WFx]: unlink() & rmdir() do not work well with URL (file://)
| From: | pajoye@php.net | Date: | Wed, 06 May 2009 19:29:46 +0000 |
| Subject: | #45228 [Fbk->WFx]: unlink() & rmdir() do not work well with URL (file://) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136869@lists.php.net to get a copy of this message | ||
ID: 45228
Updated by: pajoye@php.net
Reported By: nanawel at eyeos dot org
-Status: Feedback
+Status: Wont fix
Bug Type: Filesystem function related
Operating System: *
PHP Version: 5.2.6
Assigned To: pajoye
New Comment:
It is actually by design. I discussed with Rasmus and forgot to close
it.
Previous Comments:
------------------------------------------------------------------------
[2009-05-06 18:55:09] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
This most likely duplicate of bug #45040
------------------------------------------------------------------------
[2009-03-02 16:07:37] pajoye@php.net
Some notes:
- mkdir()
works with file://C:/my/path under Windows
expected.
FAILS with file:///C:/my/path under Windows
expected (/c:/my/path is not a valid path)
FAILS with file://localhost/C:/my/path under Windows
expected,localhost/C:/my/path is not a valid path (same for linux,
fails as well)
However, the touch() funciton seems to have issue with file://, maybe
other as well but I did not test them all yet.
- rmdir()
FAILS with ALL file:// schemes under Windows and Linux
------------------------------------------------------------------------
[2009-01-07 14:58:00] nanawel at eyeos dot org
Ok, to sum up:
- mkdir()
works with file://C:/my/path under Windows
FAILS with file:///C:/my/path under Windows
FAILS with file://localhost/C:/my/path under Windows
- rmdir()
FAILS with ALL file:// schemes under Windows and Linux
- unlink()
works with file://C:/my/path under Windows
FAILS with file:///C:/my/path under Windows
FAILS with file://localhost/C:/my/path under Windows
I think I didn't forget anything, hope this helps.
------------------------------------------------------------------------
[2009-01-07 14:35:41] pajoye@php.net
as the report is about both rmdir and unlink, the issue is not windows
specific. Will take care of it.
------------------------------------------------------------------------
[2009-01-07 14:27:53] nanawel at eyeos dot org
Except for the rmdir() function which fails on both Windows AND Linux
platforms, all the paths provided in the previous comments are explicite
Windows paths.
You cannot use "C:\" or "C:/" or "file://C:/" or something else under
Linux.
That's why I've just changed the OS concerned by the issue
from: * (all)
to: Windows
Thanks for your time.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/45228
--
Edit this bug report at http://bugs.php.net/?id=45228&edit=1