mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
* Reworded "don't use php constants in httpd.conf" note.
* Added link to ini_get() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88614 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5b443beead
commit
fa9c2436a6
1 changed files with 10 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.66 $ -->
|
||||
<!-- $Revision: 1.67 $ -->
|
||||
<chapter id="configuration">
|
||||
<title>Configuration</title>
|
||||
|
||||
|
@ -144,18 +144,16 @@ include_path = ".;c:\php\lib"
|
|||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
Some ini directives have special initilization handler. Changing
|
||||
these ini values from Apache configuration file may result in
|
||||
unexpected behavior. For example, <systemitem
|
||||
role="directive">error_reporting</systemitem> has special
|
||||
handler translate error level constant expression to integer
|
||||
value, changing value using <literal>E_ALL</literal>,
|
||||
<literal>E_NOTICE</literal> will not work for <systemitem
|
||||
role="directive">error_reporting</systemitem>. Users must
|
||||
specify integer value for <systemitem
|
||||
role="directive">error_reporting</systemitem> to make it work.
|
||||
PHP constants do not exist outside of PHP. For example, in
|
||||
<filename>httpd.conf</filename> do not use PHP constants
|
||||
such as <constant>E_ALL</constant> or <constant>E_NOTICE</constant>
|
||||
to set the <link linkend="ini.error-reporting">error_reporting</link>
|
||||
directive as they will have no meaning and will evaluate to
|
||||
<emphasis>0</emphasis>. Use the associated bitmask values instead.
|
||||
These constants can be used in &php.ini;
|
||||
</para>
|
||||
</note>
|
||||
</para>
|
||||
|
@ -164,7 +162,7 @@ include_path = ".;c:\php\lib"
|
|||
You can view the settings of the configuration values in
|
||||
the output of <function>phpinfo</function>. You can also
|
||||
access the values of individual configuration settings using
|
||||
<function>get_cfg_var</function>.
|
||||
<function>ini_get</function> or <function>get_cfg_var</function>.
|
||||
</simpara>
|
||||
|
||||
<sect2 id="ini.sect.general">
|
||||
|
|
Loading…
Reference in a new issue