#45228 [WFx]: unlink() & rmdir() do not work well with URL (file://)
| From: | nanawel at eyeos dot org | Date: | Wed, 06 May 2009 20:19:02 +0000 |
| Subject: | #45228 [WFx]: unlink() & rmdir() do not work well with URL (file://) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136877@lists.php.net to get a copy of this message | ||
ID: 45228
User updated by: nanawel at eyeos dot org
Reported By: nanawel at eyeos dot org
Status: Wont fix
Bug Type: Filesystem function related
Operating System: *
PHP Version: 5.2.6
Assigned To: pajoye
New Comment:
What do you mean "by design"?
Is it "designed" to fail on such a case? Why??
Why mixing functions that work with fully qualified URL for local files
(like fopen) and some which don't??
Either all functions understand and work with URL, or none does.
At least, is the rmdir() case going to be fixed? (or is it already?)
Thanks in advance.
Previous Comments:
------------------------------------------------------------------------
[2009-05-06 19:29:46] pajoye@php.net
It is actually by design. I discussed with Rasmus and forgot to close
it.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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