From 47849ec863c3950db0dec42f4ca784b4a33b4817 Mon Sep 17 00:00:00 2001 From: Friedhelm Betz Date: Mon, 1 Dec 2003 11:52:54 +0000 Subject: [PATCH] bugfix #26472 E_STRICT added default values for error_reporting bitmask allows xor in php.ini git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@145291 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/errorfunc/constants.xml | 21 ++++++++++++++++++--- reference/errorfunc/ini.xml | 13 ++++++++++--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/reference/errorfunc/constants.xml b/reference/errorfunc/constants.xml index 3fc748a6f3..05140e3908 100644 --- a/reference/errorfunc/constants.xml +++ b/reference/errorfunc/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; &extension.constants.core; @@ -172,8 +172,22 @@ PHP 4 only + + 2048 + + E_STRICT + (integer) + + + Run-time notices. Enable to have PHP suggest changes + to your code which will ensure the best interoperability + and forward compatability of your code. + + PHP 5 only + + - 2047 + 4095 E_ALL (integer) @@ -181,6 +195,7 @@ All errors and warnings, as supported. + With PHP >= 5.0.0 the value changed from 2047 to 4095. @@ -192,7 +207,7 @@ up a bitmask that specifies which errors to report. You can use the bitwise operators to combine these values or mask out certain types of errors. Note - that only '|', '~', '!', and '&' will be understood within + that only '|', '~', '!', ^ and '&' will be understood within &php.ini;, however, and that no bitwise operators will be understood within php3.ini. diff --git a/reference/errorfunc/ini.xml b/reference/errorfunc/ini.xml index acfc37728f..63adf322a3 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_ALL & ~E_NOTICE & ~E_STRICT PHP_INI_ALL @@ -122,7 +122,14 @@ display_errors directive. - In PHP 4 the default value does not show E_NOTICE + 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.