open_basedir is not prefix anymore (doc bug #53597)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308212 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2011-02-10 15:58:04 +00:00
parent 6368059f30
commit 911cf599c1

View file

@ -4893,9 +4893,10 @@ include_path=".;c:\php\includes"
automatically inherited.
</para>
<para>
The restriction specified with <option>open_basedir</option> is actually a
prefix, not a directory name. This means that "<literal>open_basedir
= /dir/incl</literal>" also allows access to "<literal>/dir/include</literal>" and
The restriction specified with <option>open_basedir</option> is a
directory name since PHP 5.2.16 and 5.3.4. Previous versions used it
as a prefix. This means that "<literal>open_basedir
= /dir/incl</literal>" also allowed access to "<literal>/dir/include</literal>" and
"<literal>/dir/incls</literal>" if they exist. When you want to restrict access
to only the specified directory, end with a slash. For example:
<literal>open_basedir = /dir/incl/</literal>