philip Sat Jul 13 20:21:35 2002 EDT Modified files: /phpdoc/en/chapters config.xml Log: * Reworded "don't use php constants in httpd.conf" note. * Added link to ini_get() Index: phpdoc/en/chapters/config.xml diff -u phpdoc/en/chapters/config.xml:1.66 phpdoc/en/chapters/config.xml:1.67 --- phpdoc/en/chapters/config.xml:1.66 Sat Jul 13 19:13:45 2002 +++ phpdoc/en/chapters/config.xml Sat Jul 13 20:21:34 2002 @@ -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 @@ ]]> </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 @@ 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">
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php