php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68335 rmdir doesn't work with file:// stream wrapper
Submitted: 2014-10-31 17:39 UTC Modified: -
From: sebastian at bitbernd dot de Assigned:
Status: Closed Package: Directory function related
PHP Version: 5.6.2 OS: Debian 3.2.63-2 x86_64 (Wheezy)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 - 21 = ?
Subscribe to this entry?

 
 [2014-10-31 17:39 UTC] sebastian at bitbernd dot de
Description:
------------
hi,

deleting directories with file stream wrappers doesn't work.

Test script:
---------------
mkdir('file:///tmp/testDir');
var_dump(is_dir('file:///tmp/testDir'));
rmdir('file:///tmp/testDir');
var_dump(is_dir('file:///tmp/testDir'));


Expected result:
----------------
bool(true)
bool(false)

Actual result:
--------------
bool(true)
PHP Warning:  rmdir(file:///tmp/testDir): No such file or directory in [...]
PHP Stack trace:
PHP   1. {main}() [...]:0
PHP   2. rmdir() [...]:4
bool(true)


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-01 01:35 UTC] stas@php.net
Automatic comment on behalf of php@mcq8.be
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6eaa4d01d35e44374e8d7ba930fc25f7abbb434f
Log: Fix bug #68335: rmdir doesnt work with file:// stream wrapper
 [2014-12-01 01:35 UTC] stas@php.net
-Status: Open +Status: Closed
 [2014-12-01 01:35 UTC] stas@php.net
Automatic comment on behalf of php@mcq8.be
Revision: http://git.php.net/?p=php-src.git;a=commit;h=de4638d3fdae935c0d25343e77b8d809f156391c
Log: Fix bug #68335: rmdir doesnt work with file:// stream wrapper
 [2014-12-05 07:00 UTC] ab@php.net
Automatic comment on behalf of php@mcq8.be
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6eaa4d01d35e44374e8d7ba930fc25f7abbb434f
Log: Fix bug #68335: rmdir doesnt work with file:// stream wrapper
 [2014-12-05 07:00 UTC] ab@php.net
Automatic comment on behalf of php@mcq8.be
Revision: http://git.php.net/?p=php-src.git;a=commit;h=de4638d3fdae935c0d25343e77b8d809f156391c
Log: Fix bug #68335: rmdir doesnt work with file:// stream wrapper
 [2016-07-20 11:40 UTC] davey@php.net
Automatic comment on behalf of php@mcq8.be
Revision: http://git.php.net/?p=php-src.git;a=commit;h=de4638d3fdae935c0d25343e77b8d809f156391c
Log: Fix bug #68335: rmdir doesnt work with file:// stream wrapper
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC