Bug #77085 [Com]: Function glob() is not checked for open_basedir

From: Date: Wed, 31 Oct 2018 08:33:26 +0000
Subject: Bug #77085 [Com]: Function glob() is not checked for open_basedir
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217768@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 Comment by: spam2 at rhsoft dot net Reported by: pavtov90 at gmail dot com Summary: Function 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: would you stop your one char comments triggering in mails leading to whatever cared about the Bugreport filters it no? Previous Comments: ------------------------------------------------------------------------ [2018-10-31 07:59:59] pavtov90 at gmail dot com / ------------------------------------------------------------------------ [2018-10-31 02:25:43] pavtov90 at gmail dot com on linux - PHP Version 7.1.23 ------------------------------------------------------------------------ [2018-10-31 02:24:12] pavtov90 at gmail dot com . ------------------------------------------------------------------------ [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

« previous php.bugs (#217768) next »