Bug #73048 [NEW]: scandir() does not work without permission to parent folder.
| From: | aj at ajhenderson dot com | Date: | Thu, 08 Sep 2016 15:08:07 +0000 |
| Subject: | Bug #73048 [NEW]: scandir() does not work without permission to parent folder. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-203882@lists.php.net to get a copy of this message | ||
From: aj at ajhenderson dot com
Operating system: Windows Server 2012 R2
PHP version: 7.0.10
Package: Directory function related
Bug Type: Bug
Bug description:scandir() does not work without permission to parent folder.
Description:
------------
When attempting to scandir() on a folder which the user has permission
to, it fails with Access is Denied (code 5) if the user does not have
access to the parent directory as well.
Expected result:
----------------
Scandir should be able to scan the folder that the PHP user has
permission to access.
Actual result:
--------------
Access is denied (code 5) returned.
--
Edit bug report at https://bugs.php.net/bug.php?id=73048&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73048&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73048&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73048&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73048&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73048&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73048&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73048&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73048&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73048&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73048&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73048&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73048&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73048&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73048&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73048&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73048&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73048&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73048&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73048&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73048&r=mysqlcfg