Bug #65069 [Csd]: GlobIterator fails to access files inside an open_basedir restricted dir
| From: | bukka@php.net | Date: | Fri, 29 Jul 2022 16:14:45 +0000 |
| Subject: | Bug #65069 [Csd]: GlobIterator fails to access files inside an open_basedir restricted dir | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-242070@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65069&edit=1
ID: 65069
Updated by: bukka@php.net
Reported by: seld@php.net
Summary: GlobIterator fails to access files inside an
open_basedir restricted dir
Status: Closed
Type: Bug
Package: SPL related
Operating System: Windows7
PHP Version: 5.5.0RC3
-Assigned To:
+Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
Just for the record this went just to PHP 8.2 as there is a minor BC break - it will return empty
array instead of open_basedir error if pattern is outside.
Previous Comments:
------------------------------------------------------------------------
[2022-07-28 10:45:33] git@php.net
Automatic comment on behalf of bukka
Revision: https://github.com/php/php-src/commit/1a9e6895f1d203f38655b52d5b6b823be7d14cbd
Log: Fix #65069: GlobIterator incorrect handling of open_basedir check
------------------------------------------------------------------------
[2022-07-26 11:54:25] bukka@php.net
The following pull request has been associated:
Patch Name: Fix #65069: GlobIterator incorrect handling of open_basedir check
On GitHub: https://github.com/php/php-src/pull/9120
Patch: https://github.com/php/php-src/pull/9120.patch
------------------------------------------------------------------------
[2022-01-04 17:49:17] epinci at tiscali dot it
Hello, I'm still hitting this one on Windows with PHP 7.4.27 and 8.1.1.
Has this ever been fixed?
Thank you.
------------------------------------------------------------------------
[2021-05-20 15:43:31] cmb@php.net
Related To: Bug #74016
------------------------------------------------------------------------
[2013-06-21 15:33:28] ab@php.net
Ah, just to mention, GlobIterator is the same as DirectoryIterator('glob://....')
... so that on is broken too.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=65069
--
Edit this bug report at https://bugs.php.net/bug.php?id=65069&edit=1