Bug #68335 [NEW]: rmdir doesn't work with file:// stream wrapper
| From: | sebastian at bitbernd dot de | Date: | Fri, 31 Oct 2014 17:39:49 +0000 |
| Subject: | Bug #68335 [NEW]: rmdir doesn't work with file:// stream wrapper | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188387@lists.php.net to get a copy of this message | ||
From: sebastian at bitbernd dot de
Operating system: Debian 3.2.63-2 x86_64 (Wheezy)
PHP version: 5.6.2
Package: Directory function related
Bug Type: Bug
Bug description:rmdir doesn't work with file:// stream wrapper
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 bug report at https://bugs.php.net/bug.php?id=68335&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68335&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68335&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68335&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68335&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68335&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68335&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68335&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68335&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68335&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68335&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68335&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68335&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68335&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68335&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68335&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68335&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68335&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68335&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68335&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68335&r=mysqlcfg