From fa9c2436a6128f7f8e6e266f4114082d97792f83 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sun, 14 Jul 2002 00:21:34 +0000 Subject: [PATCH] * 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 --- chapters/config.xml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/chapters/config.xml b/chapters/config.xml index 6b318ab68f..adf87650a1 100644 --- a/chapters/config.xml +++ b/chapters/config.xml @@ -1,5 +1,5 @@ - + Configuration @@ -144,18 +144,16 @@ include_path = ".;c:\php\lib" ]]> + - Some ini directives have special initilization handler. Changing - these ini values from Apache configuration file may result in - unexpected behavior. For example, error_reporting has special - handler translate error level constant expression to integer - value, changing value using E_ALL, - E_NOTICE will not work for error_reporting. Users must - specify integer value for error_reporting to make it work. + PHP constants do not exist outside of PHP. For example, in + httpd.conf do not use PHP constants + such as E_ALL or E_NOTICE + to set the error_reporting + directive as they will have no meaning and will evaluate to + 0. Use the associated bitmask values instead. + These constants can be used in &php.ini; @@ -164,7 +162,7 @@ include_path = ".;c:\php\lib" You can view the settings of the configuration values in the output of phpinfo. You can also access the values of individual configuration settings using - get_cfg_var. + ini_get or get_cfg_var.