Bug #77085 [NEW]: Wrapper on Windows glob:// is not checked for open_basedir
| From: | pavtov90 at gmail dot com | Date: | Wed, 31 Oct 2018 01:49:07 +0000 |
| Subject: | Bug #77085 [NEW]: Wrapper on Windows glob:// is not checked for open_basedir | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-217760@lists.php.net to get a copy of this message | ||
From: pavtov90 at gmail dot com
Operating system: Windows
PHP version: 7.2.11
Package: *General Issues
Bug Type: Bug
Bug description:Wrapper on Windows glob:// is not checked for open_basedir
Description:
------------
I've seen previous reports, but their status is fixed.
Wrapper on Windows glob:// is not checked for open_basedir. If I checked
correctly, where it is possible to insert it, errors will be generated
that can be used as True or False. But I decided to test it simply,
without unnecessary functions
Test script:
---------------
php.ini:
open_basedir = C:/php/
<?php
var_dump(glob("C:/test/1*"));
?>
Expected result:
----------------
Warning: _____ open_basedir restriction in effect...
Actual result:
--------------
If true (a file or folder exists)
Result : bool(false)
If false(no file or folder exists)
Result : array(0){}
--
Edit bug report at https://bugs.php.net/bug.php?id=77085&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77085&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77085&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77085&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77085&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77085&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77085&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77085&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77085&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77085&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77085&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77085&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77085&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77085&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77085&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77085&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77085&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77085&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77085&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77085&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77085&r=mysqlcfg