Bug #77085 [Opn]: Wrapper on glob:// is not checked for open_basedir
| From: | pavtov90 at gmail dot com | Date: | Wed, 31 Oct 2018 02:24:12 +0000 |
| Subject: | Bug #77085 [Opn]: Wrapper on glob:// is not checked for open_basedir | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217762@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77085&edit=1
ID: 77085
User updated by: pavtov90 at gmail dot com
Reported by: pavtov90 at gmail dot com
-Summary: Wrapper on Windows glob:// is not checked for
open_basedir
+Summary: Wrapper on glob:// is not checked for open_basedir
Status: Open
Type: Bug
Package: *General Issues
Operating System: Windows/Linux
PHP Version: 7.2.11
Block user comment: N
Private report: N
New Comment:
.
Previous Comments:
------------------------------------------------------------------------
[2018-10-31 02:23:42] pavtov90 at gmail dot com
I am testing in Linux through ini_set('open_basedir','/path/'); And he gave me
the same result
------------------------------------------------------------------------
[2018-10-31 01:49:07] pavtov90 at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=77085&edit=1