From 05875efa17e8acdd0b89860cb52a116abf3bc3f0 Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Fri, 15 Feb 2002 11:00:38 +0000 Subject: [PATCH] Some cleanups in examples and correcting a table git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70289 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/errorfunc.xml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/functions/errorfunc.xml b/functions/errorfunc.xml index b56fa7da1a..46890e1711 100644 --- a/functions/errorfunc.xml +++ b/functions/errorfunc.xml @@ -1,5 +1,5 @@ - + Error Handling and Logging Functions Errors and Logging @@ -160,14 +160,14 @@ error_reporting (E_ALL ^ E_NOTICE); // The same in both PHP 3 and 4 ]]> - Follow the links for the internal values to get their meanings: + Follow the links of the constants to get their meanings: <function>error_reporting</function> bit values - constant value + constant @@ -249,16 +249,20 @@ error_reporting (E_ALL ^ E_NOTICE); // The same in both PHP 3 and 4 error_reporting(0); /* Turn off all reporting */ -error_reporting (7); // Old syntax, PHP 2/3 -error_reporting (E_ERROR | E_WARNING | E_PARSE); // New syntax for PHP 3/4 +/* Examples are presented firdt in the old sxtax (for PHP 2/3) + * and the new - and adviced - syntax for PHP 3/4 + */ + +error_reporting (7); +error_reporting (E_ERROR | E_WARNING | E_PARSE); /* Good to use for simple running errors */ -error_reporting (15); // Old syntax, PHP 2/3 -error_reporting (E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // New syntax for PHP 3/4 +error_reporting (15); +error_reporting (E_ERROR | E_WARNING | E_PARSE | E_NOTICE); /* good for code authoring to report uninitialized or (possibly mis-spelled) variables */ -error_reporting (63); // Old syntax, PHP 2/3 -error_reporting (E_ALL); // New syntax for PHP 3/4 +error_reporting (63); +error_reporting (E_ALL); /* report all PHP errors */ ]]>