Undocumented use of ENV vars in .ini

Patch by submitted by Mike Griffiths mgriffiths@gmail.com


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329147 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sherif Ramadan 2013-01-15 04:19:18 +00:00
parent 00daa136b3
commit 52007c8545

View file

@ -1300,6 +1300,27 @@ include_path=".;c:\php\includes"
'./file'</literal> than having PHP always check the current
directory for every include.
</para>
<note>
<para>
<literal>ENV</literal> variables are also accessible in .ini files.
As such it is possible to reference the home directory using
<literal>${LOGIN}</literal> and <literal>${USER}</literal>.
</para>
<para>
Environment variables may vary between Server APIs as those environments
may be different.
</para>
</note>
<para>
<example>
<title>Unix include_path using ${USER} env variable</title>
<programlisting role="php.ini">
<![CDATA[
include_path = ".:${USER}/pear/php"
]]>
</programlisting>
</example>
</para>
</listitem>
</varlistentry>