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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sebastian at bitbernd dot de
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon Aug 02 23:01:23 2021 UTC