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
This commit is contained in:
Gabor Hojtsy 2002-02-15 11:00:38 +00:00
parent 33c5ac0166
commit 05875efa17

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.25 $ -->
<!-- $Revision: 1.26 $ -->
<reference id="ref.errorfunc">
<title>Error Handling and Logging Functions</title>
<titleabbrev>Errors and Logging</titleabbrev>
@ -160,14 +160,14 @@ error_reporting (E_ALL ^ E_NOTICE); // The same in both PHP 3 and 4
]]>
</programlisting>
</example>
Follow the links for the internal values to get their meanings:
Follow the links of the constants to get their meanings:
<table>
<title><function>error_reporting</function> bit values</title>
<tgroup cols="2">
<thead>
<row>
<entry>constant</entry>
<entry>value</entry>
<entry>constant</entry>
</row>
</thead>
<tbody>
@ -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 */
]]>
</programlisting>