[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml examples.xml /en/reference/errorfunc/functions error-reporting.xml
nlopess Thu Jun 8 11:19:12 2006 UTC Modified files: /phpdoc/en/reference/errorfunc constants.xml examples.xml /phpdoc/en/reference/errorfunc/functionserror-reporting.xml Log: add E_RECOVERABLE_ERROR add E_STRICT to E_ALL in PHP 6 http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/errorfunc/constants.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.13 phpdoc/en/reference/errorfunc/constants.xml:1.14 --- phpdoc/en/reference/errorfunc/constants.xml:1.13Tue Mar 2 15:22:06 2004 +++ phpdoc/en/reference/errorfunc/constants.xml Thu Jun 8 11:19:12 2006 @@ -1,5 +1,5 @@ - + &reftitle.constants; &extension.constants.core; @@ -172,32 +172,47 @@ since PHP 4 - - 2047 + + 2048 - E_ALL + E_STRICT (integer) - All errors and warnings, as supported, except of level - E_STRICT. + Run-time notices. Enable to have PHP suggest changes + to your code which will ensure the best interoperability + and forward compatibility of your code. - + since PHP 5 + + 4096 + + E_RECOVERABLE_ERROR + (integer) + + + Catchable fatal error. It indicates that a probably dangerous error + occured, but did not leave the Engine in an unstable state. If the error + is not caught by a user defined handle (see also + set_error_handler), the application aborts as it + was an E_ERROR. + + since PHP 5.2 + - - 2048 + + 8191 - E_STRICT + E_ALL (integer) - Run-time notices. Enable to have PHP suggest changes - to your code which will ensure the best interoperability - and forward compatibility of your code. + All errors and warnings, as supported, except of level + E_STRICT in PHP < 6. - since PHP 5 + 6143 in PHP 5.2 and 2047 previously http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/errorfunc/examples.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/errorfunc/examples.xml diff -u phpdoc/en/reference/errorfunc/examples.xml:1.7 phpdoc/en/reference/errorfunc/examples.xml:1.8 --- phpdoc/en/reference/errorfunc/examples.xml:1.7 Mon May 10 10:39:08 2004 +++ phpdoc/en/reference/errorfunc/examples.xml Thu Jun 8 11:19:12 2006 @@ -1,5 +1,5 @@ - + &reftitle.examples; @@ -26,18 +26,19 @@ // consider are E_WARNING, E_NOTICE, E_USER_ERROR, // E_USER_WARNING and E_USER_NOTICE $errortype = array ( -E_ERROR => "Error", -E_WARNING => "Warning", -E_PARSE => "Parsing Error", -E_NOTICE => "Notice", -E_CORE_ERROR => "Core Error", -E_CORE_WARNING=> "Core Warning", -E_COMPILE_ERROR => "Compile Error", -E_COMPILE_WARNING => "Compile Warning", -E_USER_ERROR => "User Error", -E_USER_WARNING=> "User Warning", -E_USER_NOTICE => "User Notice", -E_STRICT => "Runtime Notice" +E_ERROR => 'Error', +E_WARNING=> 'Warning', +E_PARSE => 'Parsing Error', +E_NOTICE => 'Notice', +E_CORE_ERROR => 'Core Error', +E_CORE_WARNING => 'Core Warning', +E_COMPILE_ERROR => 'Compile Error', +E_COMPILE_WARNING=> 'Compile Warning', +E_USER_ERROR => 'User Error', +E_USER_WARNING => 'User Warning', +E_USER_NOTICE=> 'User Notice', +E_STRICT => 'Runtime Notice', +E_RECOVERABLE_ERRROR => 'Catchable Fatal Error' ); // set of errors for which a var trace will be saved $user_errors = array(E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE); http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/errorfunc/functions/error-reporting.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/errorfunc/functions/error-reporting.xml diff -u phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.14 phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.15 --- phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.14Sun Apr 24 23:19:35 2005 +++ phpdoc/en/reference/errorfunc/functions/error-reporting.xml Thu Jun 8 11:19:12 2006 @@ -1,5 +1,5 @@ - + @@ -128,6 +128,12 @@ E_STRICT + + 4096 + +E_RECOVERABLE_ERROR + + @@ -188,7 +194,8 @@ With PHP > 5.0.0 E_STRICT with value 2048
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml examples.xml
didou Tue Mar 2 10:22:06 2004 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml examples.xml Log: fix for #27459 http://cvs.php.net/diff.php/phpdoc/en/reference/errorfunc/constants.xml?r1=1.12&r2=1.13&ty=u Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.12 phpdoc/en/reference/errorfunc/constants.xml:1.13 --- phpdoc/en/reference/errorfunc/constants.xml:1.12Mon Feb 16 11:03:09 2004 +++ phpdoc/en/reference/errorfunc/constants.xml Tue Mar 2 10:22:06 2004 @@ -1,5 +1,5 @@ - + &reftitle.constants; &extension.constants.core; @@ -86,7 +86,7 @@ Fatal errors that occur during PHP's initial startup. This is like an E_ERROR, except it is generated by the core of PHP. - PHP 4 only + since PHP 4 @@ -100,7 +100,7 @@ This is like an E_WARNING, except it is generated by the core of PHP. - PHP 4 only + since PHP 4 @@ -113,7 +113,7 @@ Fatal compile-time errors. This is like an E_ERROR, except it is generated by the Zend Scripting Engine. - PHP 4 only + since PHP 4 @@ -127,7 +127,7 @@ E_WARNING, except it is generated by the Zend Scripting Engine. - PHP 4 only + since PHP 4 @@ -141,7 +141,7 @@ E_ERROR, except it is generated in PHP code by using the PHP function trigger_error. - PHP 4 only + since PHP 4 @@ -155,7 +155,7 @@ E_WARNING, except it is generated in PHP code by using the PHP function trigger_error. - PHP 4 only + since PHP 4 @@ -169,7 +169,7 @@ E_NOTICE, except it is generated in PHP code by using the PHP function trigger_error. - PHP 4 only + since PHP 4 @@ -197,7 +197,7 @@ to your code which will ensure the best interoperability and forward compatibility of your code. - PHP 5 only + since PHP 5 http://cvs.php.net/diff.php/phpdoc/en/reference/errorfunc/examples.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/errorfunc/examples.xml diff -u phpdoc/en/reference/errorfunc/examples.xml:1.5 phpdoc/en/reference/errorfunc/examples.xml:1.6 --- phpdoc/en/reference/errorfunc/examples.xml:1.5 Thu Jan 15 07:42:17 2004 +++ phpdoc/en/reference/errorfunc/examples.xml Tue Mar 2 10:22:06 2004 @@ -1,5 +1,5 @@ - + &reftitle.examples; @@ -23,19 +23,21 @@ // define an assoc array of error string // in reality the only entries we should -// consider are 2,8,256,512 and 1024 +// consider are E_WARNING, E_NOTICE, E_USER_ERROR, +// E_USER_WARNING and E_USER_NOTICE $errortype = array ( -1=> "Error", -2=> "Warning", -4=> "Parsing Error", -8=> "Notice", -16 => "Core Error", -32 => "Core Warning", -64 => "Compile Error", -128 => "Compile Warning", -256 => "User Error", -512 => "User Warning", -1024 => "User Notice" +E_ERROR => "Error", +E_WARNING => "Warning", +E_PARSE => "Parsing Error", +E_NOTICE => "Notice", +E_CORE_ERROR => "Core Error", +E_CORE_WARNING=> "Core Warning", +E_COMPILE_ERROR => "Compile Error", +E_COMPILE_WARNING => "Compile Warning", +E_USER_ERROR => "User Error", +E_USER_WARNING=> "User Warning", +E_USER_NOTICE => "User Notice", +E_STRICT => "Runtime Notice" ); // set of errors for which a var trace will be saved $user_errors = array(E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE); @@ -57,8 +59,9 @@ // save to the error log, and e-mail me if there is a critical user error error_log($err, 3, "/usr/local/php4/error.log"); -if ($errno == E_USER_ERROR) +if ($errno == E_USER_ERROR) { mail("[EMAIL PROTECTED]", "Critical User Error", $err); +} } @@ -100,7 +103,7 @@ // define some "vectors" $a = array(2, 3, "foo"); $b = array(5.5, 4.3, -1.6); -$c = array (1, -3); +$c = array(1, -3); // generate a user error $t1 = distance($c, $b) . "\n";
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml
didou Mon Feb 16 11:03:09 2004 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml Log: missing quotes http://cvs.php.net/diff.php/phpdoc/en/reference/errorfunc/constants.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.11 phpdoc/en/reference/errorfunc/constants.xml:1.12 --- phpdoc/en/reference/errorfunc/constants.xml:1.11Thu Dec 11 12:15:43 2003 +++ phpdoc/en/reference/errorfunc/constants.xml Mon Feb 16 11:03:09 2004 @@ -1,5 +1,5 @@ - + &reftitle.constants; &extension.constants.core; @@ -209,7 +209,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.
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml ini.xml
vrana Thu Dec 11 12:15:43 2003 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml ini.xml Log: Typos Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.10 phpdoc/en/reference/errorfunc/constants.xml:1.11 --- phpdoc/en/reference/errorfunc/constants.xml:1.10Sun Dec 7 11:04:35 2003 +++ phpdoc/en/reference/errorfunc/constants.xml Thu Dec 11 12:15:43 2003 @@ -1,5 +1,5 @@ - + &reftitle.constants; &extension.constants.core; @@ -195,7 +195,7 @@ Run-time notices. Enable to have PHP suggest changes to your code which will ensure the best interoperability - and forward compatability of your code. + and forward compatibility of your code. PHP 5 only Index: phpdoc/en/reference/errorfunc/ini.xml diff -u phpdoc/en/reference/errorfunc/ini.xml:1.16 phpdoc/en/reference/errorfunc/ini.xml:1.17 --- phpdoc/en/reference/errorfunc/ini.xml:1.16 Sun Dec 7 11:04:35 2003 +++ phpdoc/en/reference/errorfunc/ini.xml Thu Dec 11 12:15:43 2003 @@ -1,5 +1,5 @@ - + &reftitle.runtime; &extension.runtime; @@ -129,8 +129,8 @@ Enabling E_NOTICE during development has some benefits. For debugging purposes: NOTICE messages will warn you - about possibls bugs in your code. For example, use of unassigned values - are warned. It is extremely useful to find typos and + about possible bugs in your code. For example, use of unassigned values + is warned. It is extremely useful to find typos and to save time for debugging. NOTICE messages will warn you about bad style. For example, $arr[item] is better to be written as $arr['item'] since PHP tries to treat "item" as constant. If it is not a constant, PHP assumes
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml ini.xml /en/reference/errorfunc/functions error-reporting.xml
betzSun Dec 7 11:04:36 2003 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml ini.xml /phpdoc/en/reference/errorfunc/functionserror-reporting.xml Log: real bugfix #26472 E_STRICT available with PHP5 Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.9 phpdoc/en/reference/errorfunc/constants.xml:1.10 --- phpdoc/en/reference/errorfunc/constants.xml:1.9 Mon Dec 1 06:52:54 2003 +++ phpdoc/en/reference/errorfunc/constants.xml Sun Dec 7 11:04:35 2003 @@ -1,5 +1,5 @@ - + &reftitle.constants; &extension.constants.core; @@ -172,30 +172,32 @@ PHP 4 only - - 2048 + + 2047 - E_STRICT + E_ALL (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. + All errors and warnings, as supported, except of level + E_STRICT. - PHP 5 only + - - 4095 + + + 2048 - E_ALL + E_STRICT (integer) - All errors and warnings, as supported. + Run-time notices. Enable to have PHP suggest changes + to your code which will ensure the best interoperability + and forward compatability of your code. - With PHP >= 5.0.0 the value changed from 2047 to 4095. + PHP 5 only Index: phpdoc/en/reference/errorfunc/ini.xml diff -u phpdoc/en/reference/errorfunc/ini.xml:1.15 phpdoc/en/reference/errorfunc/ini.xml:1.16 --- phpdoc/en/reference/errorfunc/ini.xml:1.15 Mon Dec 1 06:52:54 2003 +++ phpdoc/en/reference/errorfunc/ini.xml Sun Dec 7 11:04:35 2003 @@ -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), Index: phpdoc/en/reference/errorfunc/functions/error-reporting.xml diff -u phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.6 phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.7 --- phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.6 Mon Dec 1 06:49:35 2003 +++ phpdoc/en/reference/errorfunc/functions/error-reporting.xml Sun Dec 7 11:04:36 2003 @@ -1,5 +1,5 @@ - + @@ -143,17 +143,17 @@ + 2047 + + E_ALL + + + 2048 E_STRICT - - 4096 - - E_ALL - - @@ -161,8 +161,8 @@ 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.
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml ini.xml
betzMon Dec 1 06:52:55 2003 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml ini.xml Log: bugfix #26472 E_STRICT added default values for error_reporting bitmask allows xor in php.ini Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.8 phpdoc/en/reference/errorfunc/constants.xml:1.9 --- phpdoc/en/reference/errorfunc/constants.xml:1.8 Tue Jun 10 12:53:37 2003 +++ phpdoc/en/reference/errorfunc/constants.xml Mon Dec 1 06:52:54 2003 @@ -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. Index: phpdoc/en/reference/errorfunc/ini.xml diff -u phpdoc/en/reference/errorfunc/ini.xml:1.14 phpdoc/en/reference/errorfunc/ini.xml:1.15 --- phpdoc/en/reference/errorfunc/ini.xml:1.14 Mon Jun 9 16:41:23 2003 +++ phpdoc/en/reference/errorfunc/ini.xml Mon Dec 1 06:52:54 2003 @@ -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.
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml
philip Tue Jun 10 12:53:37 2003 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml Log: Implement error level ids, example: E_NOTICE. Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.7 phpdoc/en/reference/errorfunc/constants.xml:1.8 --- phpdoc/en/reference/errorfunc/constants.xml:1.7 Wed May 21 06:34:22 2003 +++ phpdoc/en/reference/errorfunc/constants.xml Tue Jun 10 12:53:37 2003 @@ -1,5 +1,5 @@ - + &reftitle.constants; &extension.constants.core; @@ -10,7 +10,7 @@ use the bitmask values instead. - + Errors and Logging @@ -22,7 +22,7 @@ - + 1 E_ERROR @@ -36,7 +36,7 @@ - + 2 E_WARNING @@ -49,7 +49,7 @@ - + 4 E_PARSE @@ -62,7 +62,7 @@ - + 8 E_NOTICE @@ -76,7 +76,7 @@ - + 16 E_CORE_ERROR @@ -89,7 +89,7 @@ PHP 4 only - + 32 E_CORE_WARNING @@ -103,7 +103,7 @@ PHP 4 only - + 64 E_COMPILE_ERROR @@ -116,7 +116,7 @@ PHP 4 only - + 128 E_COMPILE_WARNING @@ -130,7 +130,7 @@ PHP 4 only - + 256 E_USER_ERROR @@ -144,7 +144,7 @@ PHP 4 only - + 512 E_USER_WARNING @@ -158,7 +158,7 @@ PHP 4 only - + 1024 E_USER_NOTICE @@ -172,7 +172,7 @@ PHP 4 only - + 2047 E_ALL -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml
betzSat Mar 29 10:16:52 2003 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml Log: unix linendings Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.5 phpdoc/en/reference/errorfunc/constants.xml:1.6 --- phpdoc/en/reference/errorfunc/constants.xml:1.5 Tue Oct 8 06:44:00 2002 +++ phpdoc/en/reference/errorfunc/constants.xml Sat Mar 29 10:16:52 2003 @@ -1,192 +1,192 @@ - - - - &reftitle.constants; - &extension.constants.core; - - -You may use these constant names in &php.ini; but not outside -of PHP, like in httpd.conf, where you'd -use the bitmask values instead. - - - - Errors and Logging - - - - Value - Constant - Description - Note - - - - - 1 - - E_ERROR - (integer) - - - Fatal run-time errors. These indicate errors that can not be - recovered from, such as a memory allocation problem. - Execution of the script is halted. - - - - - - 2 - - E_WARNING - (integer) - - - Run-time warnings (non-fatal errors). Execution of the script is not - halted. - - - - - - 4 - - E_PARSE - (integer) - - - Compile-time parse errors. Parse errors should only be generated by - the parser. - - - - - - 8 - - E_NOTICE - (integer) - - - Run-time notices. Indicate that the script encountered something that - could indicate an error, but could also happen in the normal course of - running a script. - - - - - - 16 - - E_CORE_ERROR - (integer) - - - Fatal errors that occur during PHP's initial startup. This is like an - E_ERROR, except it is generated by the core of PHP. - - PHP 4 only - - - - 32 - - E_CORE_WARNING - (integer) - - - Warnings (non-fatal errors) that occur during PHP's initial startup. - This is like an E_WARNING, except it is generated - by the core of PHP. - - PHP 4 only - - - - 64 - - E_COMPILE_ERROR - (integer) - - - Fatal compile-time errors. This is like an E_ERROR, - except it is generated by the Zend Scripting Engine. - - PHP 4 only - - - - 128 - - E_COMPILE_WARNING - (integer) - - - Compile-time warnings (non-fatal errors). This is like an - E_WARNING, except it is generated by the Zend - Scripting Engine. - - PHP 4 only - - - - 256 - - E_USER_ERROR - (integer) - - - User-generated error message. This is like an - E_ERROR, except it is generated in PHP code by - using the PHP function trigger_error. - - PHP 4 only - - - - 512 - - E_USER_WARNING - (integer) - - - User-generated warning message. This is like an - E_WARNING, except it is generated in PHP code by - using the PHP function trigger_error. - - PHP 4 only - - - - 1024 - - E_USER_NOTICE - (integer) - - - User-generated notice message. This is like an - E_NOTICE, except it is generated in PHP code by - using the PHP function trigger_error. - - PHP 4 only - - - - 2047 - - E_ALL - (integer) - - - All errors and warnings, as supported. - - - - - - - + + + + &reftitle.constants; + &extension.constants.core; + + +You may use these constant names in &php.ini; but not outside +of PHP, like in httpd.conf, where you'd +use the bitmask values instead. + + + + Errors and Logging + + + + Value + Constant + Description + Note + + + + + 1 + + E_ERROR + (integer) + + + Fatal run-time errors. These indicate errors that can not be + recovered from, such as a memory allocation problem. + Execution of the script is halted. + + + + + + 2 + + E_WARNING + (integer) + + + Run-time warnings (non-fatal errors). Execution of the script is not + halted. + + + + + + 4 + + E_PARSE + (integer) + + + Compile-time parse errors. Parse errors should only be generated by + the parser. + + + + + + 8 + + E_NOTICE + (integer) + + + Run-time notices. Indicate that the script encountered something that + could indicate an error, but could also happen in the normal course of + running a script. + + + + + + 16 + + E_CORE_ERROR + (integer) + + + Fatal errors that occur durin
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml examples.xml ini.xml reference.xml
betzTue Oct 8 06:44:01 2002 EDT Added files: /phpdoc/en/reference/errorfunc examples.xml Modified files: /phpdoc/en/reference/errorfunc reference.xml ini.xml constants.xml Log: contents from error-handling added Index: phpdoc/en/reference/errorfunc/reference.xml diff -u phpdoc/en/reference/errorfunc/reference.xml:1.5 phpdoc/en/reference/errorfunc/reference.xml:1.6 --- phpdoc/en/reference/errorfunc/reference.xml:1.5 Sun Sep 29 20:09:44 2002 +++ phpdoc/en/reference/errorfunc/reference.xml Tue Oct 8 06:44:00 2002 @@ -1,5 +1,5 @@ - + Error Handling and Logging Functions Errors and Logging @@ -40,11 +40,12 @@ &reference.errorfunc.constants; + &reference.errorfunc.examples; + &reftitle.seealso; - Fore more Information see the section - Error Handling. + See also syslog. Index: phpdoc/en/reference/errorfunc/ini.xml diff -u phpdoc/en/reference/errorfunc/ini.xml:1.1 phpdoc/en/reference/errorfunc/ini.xml:1.2 --- phpdoc/en/reference/errorfunc/ini.xml:1.1 Sun Sep 29 20:09:44 2002 +++ phpdoc/en/reference/errorfunc/ini.xml Tue Oct 8 06:44:00 2002 @@ -1,5 +1,5 @@ - + &reftitle.runtime; &extension.runtime; @@ -114,14 +114,23 @@ Set the error reporting level. The parameter is either an integer representing a bit field, or named constants. The error_reporting levels and constants are described in - Predefined Constants - , and in &php.ini;. To set at runtime, use the + Predefined Constants, + and in &php.ini;. To set at runtime, use the error_reporting function. See also the display_errors directive. The default value does not show E_NOTICE level errors. You may want to show them during development. + + + In PHP 4, the default setting is + E_ALL & ~E_NOTICE, meaning to display all errors + and warnings which are not E_NOTICE-level. In PHP 3, the default + setting is (E_ERROR | E_WARNING | E_PARSE), + meaning the same thing. Note, however, that since constants are not + supported in PHP 3's php3.ini, the error_reporting + setting there must be numeric; hence, it is 7. Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.4 phpdoc/en/reference/errorfunc/constants.xml:1.5 --- phpdoc/en/reference/errorfunc/constants.xml:1.4 Mon Jul 22 09:38:12 2002 +++ phpdoc/en/reference/errorfunc/constants.xml Tue Oct 8 06:44:00 2002 @@ -1,5 +1,5 @@ - + &reftitle.constants; &extension.constants.core; @@ -12,12 +12,13 @@ Errors and Logging - + Value Constant Description + Note @@ -32,6 +33,7 @@ recovered from, such as a memory allocation problem. Execution of the script is halted. + @@ -44,6 +46,7 @@ Run-time warnings (non-fatal errors). Execution of the script is not halted. + @@ -56,6 +59,7 @@ Compile-time parse errors. Parse errors should only be generated by the parser. + @@ -69,6 +73,7 @@ could indicate an error, but could also happen in the normal course of running a script. + @@ -81,6 +86,7 @@ Fatal errors that occur during PHP's initial startup. This is like an E_ERROR, except it is generated by the core of PHP. + PHP 4 only @@ -92,8 +98,9 @@ Warnings (non-fatal errors) that occur during PHP's initial startup. This is like an E_WARNING, except it is generated - by the core of PHP. PHP 4 only. + by the core of PHP. + PHP 4 only @@ -104,8 +111,9 @@ Fatal compile-time errors. This is like an E_ERROR, - except it is generated by the Zend Scripting Engine. PHP 4 only. + except it is generated by the Zend Scripting Engine. + PHP 4 only @@ -117,8 +125,9 @@ Compile-time warnings (non-fatal errors). This is like an E_WARNING, except it is generated by the Zend - Scripting Engine. PHP 4 only. + Scripting Engine. + PHP 4 only @@ -131,8 +140,8 @@ User-generated error message. This is like an E_ERROR, except it is generated in PHP code by using the PHP function trigger_error. - PHP 4 only. + PHP 4 only @@ -145,8 +154,8 @@ User-generated warning message. This is like an E_WARNING, except it is generated in PHP code by using the PHP function trigger_error. - PHP 4 only. + PHP 4 only @@ -159,8 +168,8 @@ User-generated notice message. This is like an E_NOTICE, except it is generated in PHP code by using the PHP function trigger_error. -
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml
betzMon Jul 22 09:38:13 2002 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml Log: entity correction reformated further explanation as note Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.3 phpdoc/en/reference/errorfunc/constants.xml:1.4 --- phpdoc/en/reference/errorfunc/constants.xml:1.3 Sun Jul 14 15:34:44 2002 +++ phpdoc/en/reference/errorfunc/constants.xml Mon Jul 22 09:38:12 2002 @@ -1,13 +1,15 @@ - + &reftitle.constants; - - These constants are part of the PHP core and always available. - You may use these constant names in &php.ini; but not outside - of PHP, like in httpd.conf, where you'd - use the bitmask values instead. - + &extension.constants.core; + + +You may use these constant names in &php.ini; but not outside +of PHP, like in httpd.conf, where you'd +use the bitmask values instead. + + Errors and Logging -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml
philip Sun Jul 14 15:34:44 2002 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml Log: Don't use these constants outside of PHP, like in httpd.conf Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.2 phpdoc/en/reference/errorfunc/constants.xml:1.3 --- phpdoc/en/reference/errorfunc/constants.xml:1.2 Sun Jul 14 15:31:59 2002 +++ phpdoc/en/reference/errorfunc/constants.xml Sun Jul 14 15:34:44 2002 @@ -1,9 +1,12 @@ - + &reftitle.constants; These constants are part of the PHP core and always available. + You may use these constant names in &php.ini; but not outside + of PHP, like in httpd.conf, where you'd + use the bitmask values instead. Errors and Logging -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml
philip Sun Jul 14 15:32:00 2002 EDT Modified files: /phpdoc/en/reference/errorfunc constants.xml Log: WS (\r\n -> \n) Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.1 phpdoc/en/reference/errorfunc/constants.xml:1.2 --- phpdoc/en/reference/errorfunc/constants.xml:1.1 Mon May 6 03:15:15 2002 +++ phpdoc/en/reference/errorfunc/constants.xml Sun Jul 14 15:31:59 2002 @@ -1,198 +1,198 @@ - - - - &reftitle.constants; - - These constants are part of the PHP core and always available. + + + + &reftitle.constants; + + These constants are part of the PHP core and always available. - - Errors and Logging - - - - Value - Constant - Description - - - - - 1 - - E_ERROR - (integer) - + + Errors and Logging + + + + Value + Constant + Description + + + + + 1 + + E_ERROR + (integer) + - Fatal run-time errors. These indicate errors that can not be - recovered from, such as a memory allocation problem. + Fatal run-time errors. These indicate errors that can not be + recovered from, such as a memory allocation problem. Execution of the script is halted. - - - - - 2 - - E_WARNING - (integer) - - - Run-time warnings (non-fatal errors). Execution of the script is not - halted. - - - - - 4 - - E_PARSE - (integer) - - - Compile-time parse errors. Parse errors should only be generated by - the parser. - - - - - 8 - - E_NOTICE - (integer) - - - Run-time notices. Indicate that the script encountered something that - could indicate an error, but could also happen in the normal course of - running a script. - - - - - 16 - - E_CORE_ERROR - (integer) - - - Fatal errors that occur during PHP's initial startup. This is like an - E_ERROR, except it is generated by the core of PHP. - - - - - 32 - - E_CORE_WARNING - (integer) - - - Warnings (non-fatal errors) that occur during PHP's initial startup. - This is like an E_WARNING, except it is generated - by the core of PHP. PHP 4 only. - - - - - 64 - - E_COMPILE_ERROR - (integer) - - - Fatal compile-time errors. This is like an E_ERROR, - except it is generated by the Zend Scripting Engine. PHP 4 only. - - - - - 128 - - E_COMPILE_WARNING - (integer) - - - Compile-time warnings (non-fatal errors). This is like an - E_WARNING, except it is generated by the Zend - Scripting Engine. PHP 4 only. - - - - - 256 - - E_USER_ERROR - (integer) - - - User-generated error message. This is like an - E_ERROR, except it is generated in PHP code by - using the PHP function trigger_error. - PHP 4 only. - - - - - 512 - - E_USER_WARNING - (integer) - - - User-generated warning message. This is like an - E_WARNING, except it is generated in PHP code by - using the PHP function trigger_error. - PHP 4 only. - - - - - 1024 - - E_USER_NOTICE - (integer) - - - User-generated notice message. This is like an - E_NOTICE, except it is generated in PHP code by - using the PHP function trigger_error. - PHP 4 only. - - - - - 2047 - - E_ALL - (integer) - - - All errors and warnings, as supported. - - - - - - - + + + + + 2 + + E_WARNING + (integer) + + + Run-time warnings (non-fatal errors). Execution of the script is not + halted. + + + + + 4 + + E_PARSE + (integer) + + + Compile-time parse errors. Parse errors should only be generated by + the parser. + + + + + 8 + + E_NOTICE + (integer) + + + Run-time notices. Indicate that the script encountered something that + could indicate an error, but could also happen in the normal course of + running a script. + + + + + 16 + + E_CORE_ERROR + (integer) + + + Fatal errors that occur during PHP's initial startup. This is like an + E_ERROR, except it is generated by the core of PHP. + + + + + 32 + + E_CORE_WARNING + (integer) + + + Warnings (non-fatal errors) that occur during PHP's initial startup. + This is like an E_WARNING, except it is generated + by the core of PHP. PHP 4 only. + + + + + 64 + +
[PHP-DOC] cvs: phpdoc /en/reference/errorfunc constants.xml reference.xml
betzMon May 6 03:15:15 2002 EDT Added files: /phpdoc/en/reference/errorfunc constants.xml Modified files: /phpdoc/en/reference/errorfunc reference.xml Log: new structure and constants extra Index: phpdoc/en/reference/errorfunc/reference.xml diff -u phpdoc/en/reference/errorfunc/reference.xml:1.2 phpdoc/en/reference/errorfunc/reference.xml:1.3 --- phpdoc/en/reference/errorfunc/reference.xml:1.2 Mon Apr 15 14:56:34 2002 +++ phpdoc/en/reference/errorfunc/reference.xml Mon May 6 03:15:15 2002 @@ -1,10 +1,12 @@ - + Error Handling and Logging Functions Errors and Logging + + &reftitle.intro; These are functions dealing with error handling and logging. They allow you to define your own error handling rules, as well as modify @@ -22,6 +24,28 @@ kind of error feedback is given, ranging from simple notices to customized functions returned during errors. + + + +&reftitle.required; +&no.requirement; + + + +&reftitle.install; +&no.install; + + + &reference.errorfunc.constants; + + + &reftitle.seealso; + + Fore more Information see the section + Error Handling. + + + &reference.errorfunc.functions; @@ -47,4 +71,5 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + Index: phpdoc/en/reference/errorfunc/constants.xml +++ phpdoc/en/reference/errorfunc/constants.xml &reftitle.constants; These constants are part of the PHP core and always available. Errors and Logging Value Constant Description 1 E_ERROR (integer) Fatal run-time errors. These indicate errors that can not be recovered from, such as a memory allocation problem. Execution of the script is halted. 2 E_WARNING (integer) Run-time warnings (non-fatal errors). Execution of the script is not halted. 4 E_PARSE (integer) Compile-time parse errors. Parse errors should only be generated by the parser. 8 E_NOTICE (integer) Run-time notices. Indicate that the script encountered something that could indicate an error, but could also happen in the normal course of running a script. 16 E_CORE_ERROR (integer) Fatal errors that occur during PHP's initial startup. This is like an E_ERROR, except it is generated by the core of PHP. 32 E_CORE_WARNING (integer) Warnings (non-fatal errors) that occur during PHP's initial startup. This is like an E_WARNING, except it is generated by the core of PHP. PHP 4 only. 64 E_COMPILE_ERROR (integer) Fatal compile-time errors. This is like an E_ERROR, except it is generated by the Zend Scripting Engine. PHP 4 only. 128 E_COMPILE_WARNING (integer) Compile-time warnings (non-fatal errors). This is like an E_WARNING, except it is generated by the Zend Scripting Engine. PHP 4 only. 256 E_USER_ERROR (integer) User-generated error message. This is like an E_ERROR, except it is generated in PHP code by using the PHP function trigger_error. PHP 4 only. 512 E_USER_WARNING (integer) User-generated warning message. This is like an E_WARNING, except it is generated in PHP code by using the PHP function trigger_error. PHP 4 only. 1024 E_USER_NOTICE (integer) User-generated notice message. This is like an E_NOTICE, except it is generated in PHP code by using the PHP function trigger_error. PHP 4 only. 2047 E_ALL (integer) All errors and warnings, as supported.