Document allow_url_include properly

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@225344 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Etienne Kneuss 2006-12-19 22:47:05 +00:00
parent 6656837060
commit 6cfcd6045f
3 changed files with 50 additions and 12 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.41 $ -->
<!-- $Revision: 1.42 $ -->
<appendix id="ini">
<title>&php.ini; directives</title>
@ -36,7 +36,7 @@
<entry>PHP_INI_ALL in PHP &lt;= 4.3.4. Available since PHP 4.0.4.</entry>
</row>
<row>
<entry>allow_url_include</entry>
<entry><link linkend="ini.allow-url-include">allow_url_include</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry>Available since PHP 5.2.0.</entry>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.66 $ -->
<!-- $Revision: 1.67 $ -->
<appendix id="wrappers">
<title>List of Supported Protocols/Wrappers</title>
<para>
@ -50,7 +50,7 @@
</thead>
<tbody>
<row>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>No</entry>
</row>
<row>
@ -259,7 +259,7 @@ $result = file_get_contents('http://example.com/submit.php', false, $context);
</thead>
<tbody>
<row>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>Yes</entry>
</row>
<row>
@ -489,7 +489,7 @@ X-MyCustomHeader: Foo
</thead>
<tbody>
<row>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>Yes</entry>
<entry>Yes</entry>
</row>
@ -788,9 +788,18 @@ echo stream_get_contents($fp);
</thead>
<tbody>
<row>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>No</entry>
</row>
<row>
<entry>Restricted by <link linkend="ini.allow-url-include">allow_url_include</link></entry>
<entry>
<literal>php://input</literal>,
<literal>php://stdin</literal>,
<literal>php://memory</literal> and
<literal>php://temp</literal> only.
</entry>
</row>
<row>
<entry>Allows Reading</entry>
<entry>
@ -894,7 +903,7 @@ echo stream_get_contents($fp);
</thead>
<tbody>
<row>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>No</entry>
</row>
<row>
@ -995,6 +1004,10 @@ echo $meta['mediatype'];
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>No</entry>
</row>
<row>
<entry>Restricted by <link linkend="ini.allow-url-include">allow_url_include</link></entry>
<entry>Yes</entry>
</row>
<row>
<entry>Allows Reading</entry>
<entry>Yes</entry>
@ -1099,7 +1112,7 @@ $stream = fopen("ssh2.tunnel://$session/remote.example.com:1234", 'r');
</thead>
<tbody>
<row>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>Yes</entry>
<entry>Yes</entry>
<entry>Yes</entry>
@ -1314,7 +1327,7 @@ $stream = fopen("ssh2.tunnel://$session/remote.example.com:1234", 'r');
</thead>
<tbody>
<row>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>No</entry>
</row>
<row>
@ -1457,7 +1470,7 @@ $stream = fopen("ssh2.tunnel://$session/remote.example.com:1234", 'r');
</thead>
<tbody>
<row>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link>.</entry>
<entry>Restricted by <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>No</entry>
</row>
<row>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.12 $ -->
<!-- $Revision: 1.13 $ -->
<section id="filesystem.configuration">
&reftitle.runtime;
&extension.runtime;
@ -22,6 +22,12 @@
<entry>PHP_INI_SYSTEM</entry>
<entry>PHP_INI_ALL in PHP &lt;= 4.3.4. Available since PHP 4.0.4.</entry>
</row>
<row>
<entry>allow_url_include</entry>
<entry>"0"</entry>
<entry>PHP_INI_SYSTEM</entry>
<entry>Available since PHP 5.2.0.</entry>
</row>
<row>
<entry>user_agent</entry>
<entry>NULL</entry>
@ -95,6 +101,25 @@
</listitem>
</varlistentry>
<varlistentry id="ini.allow-url-include">
<term>
<parameter>allow_url_include</parameter>
<type>boolean</type>
</term>
<listitem>
<para>
This option allows the use of URL-aware fopen wrappers with the following
functions: <function>include</function>, <function>include_once</function>,
<function>require</function>, <function>require_once</function>.
</para>
<note>
<para>
This setting requires allow_url_fopen to be on.
</para>
</note>
</listitem>
</varlistentry>
<varlistentry id="ini.user-agent">
<term>
<parameter>user_agent</parameter>