ID: 45228 Updated by: paj...@php.net 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:
Only less than a handful protocols support the creation or deletion of directories. Previous Comments: ------------------------------------------------------------------------ [2009-05-06 20:19:02] nanawel at eyeos dot org 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. ------------------------------------------------------------------------ [2009-05-06 19:29:46] paj...@php.net It is actually by design. I discussed with Rasmus and forgot to close it. ------------------------------------------------------------------------ [2009-05-06 18:55:09] j...@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] paj...@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. ------------------------------------------------------------------------ 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