diff --git a/reference/errorfunc/constants.xml b/reference/errorfunc/constants.xml index 05140e3908..04d29b0f87 100644 --- a/reference/errorfunc/constants.xml +++ b/reference/errorfunc/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; &extension.constants.core; @@ -172,6 +172,20 @@ PHP 4 only + + 2047 + + E_ALL + (integer) + + + All errors and warnings, as supported, except of level + E_STRICT. + + + + + 2048 @@ -186,18 +200,6 @@ PHP 5 only - - 4095 - - E_ALL - (integer) - - - All errors and warnings, as supported. - - With PHP >= 5.0.0 the value changed from 2047 to 4095. - - diff --git a/reference/errorfunc/functions/error-reporting.xml b/reference/errorfunc/functions/error-reporting.xml index 679778ebde..56eef38b44 100644 --- a/reference/errorfunc/functions/error-reporting.xml +++ b/reference/errorfunc/functions/error-reporting.xml @@ -1,5 +1,5 @@ - + @@ -142,18 +142,18 @@ ini_set ('error_reporting', E_ALL); E_USER_NOTICE + + 2047 + + E_ALL + + 2048 E_STRICT - - 4096 - - E_ALL - - @@ -161,8 +161,8 @@ ini_set ('error_reporting', E_ALL); With PHP > 5.0.0 E_STRICT with value 2048 is - introduced. Therefore the value for E_ALL changed - to 4096. + available. E_ALL does NOT + include error levelE_STRICT. diff --git a/reference/errorfunc/ini.xml b/reference/errorfunc/ini.xml index 63adf322a3..a52ca7f422 100644 --- a/reference/errorfunc/ini.xml +++ b/reference/errorfunc/ini.xml @@ -1,5 +1,5 @@ - +
&reftitle.runtime; &extension.runtime; @@ -17,7 +17,7 @@ error_reporting - E_ALL & ~E_NOTICE & ~E_STRICT + E_ALL & ~E_NOTICE PHP_INI_ALL @@ -122,15 +122,9 @@ display_errors directive. - In PHP 4 the default value is E_ALL & ~E_NOTICE. This setting does - not show E_NOTICE level errors. You may want to - show them during development. - - - In PHP 5 E_STRICT is introduced. The default value - is E_ALL & ~E_NOTICE & ~E_STRICT. This setting does not show - errors E_NOTICE and E_STRICT - level errors. You may want to show them during development. + In PHP 4 and PHP 5 the default value is E_ALL & ~E_NOTICE. This + setting does not show E_NOTICE level errors. You + may want to show them during development. Enabling E_NOTICE during development has @@ -143,6 +137,17 @@ it is a string index for the array. + + + In PHP 5 a new error level E_STRICT is available. + As E_STRICT is not included within + E_ALL you have to explicitly enable this kind of + error level. Enabling E_STRICT during development + has some benefits. STRICT messages will help you to use the latest and + greatest suggested method of coding, for example warn you about using + deprecated functions. + + In PHP 3, the default setting is (E_ERROR | E_WARNING | E_PARSE),