Bug #68335 [Opn->Csd]: rmdir doesn't work with file:// stream wrapper
| From: | stas@php.net | Date: | Mon, 01 Dec 2014 01:35:54 +0000 |
| Subject: | Bug #68335 [Opn->Csd]: rmdir doesn't work with file:// stream wrapper | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188862@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68335&edit=1
ID: 68335
Updated by: stas@php.net
Reported by: sebastian at bitbernd dot de
Summary: rmdir doesn't work with file:// stream wrapper
-Status: Open
+Status: Closed
Type: Bug
Package: Directory function related
Operating System: Debian 3.2.63-2 x86_64 (Wheezy)
PHP Version: 5.6.2
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2014-10-31 17:39:48] 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)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68335&edit=1