History log of /PHP-8.0/ext/standard/tests/file/open_basedir_cwd_resolve.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# ee7a8acd 19-May-2021 Nikita Popov

Fix handling of open_basedir that contains cwd

While resolving the path, the last step will reduce it down to ""
(an empty string) and realpath() will resolve this to getcwd().
If op

Fix handling of open_basedir that contains cwd

While resolving the path, the last step will reduce it down to ""
(an empty string) and realpath() will resolve this to getcwd().
If open_basedir contains the CWD, then that means open_basedir
will be bypassed for paths that don't have any components that
exist (if one of the components exists, then we abort the realpath
loop at that point).

Closes GH-7015.

show more ...