Added int-based examples for error reporting. I think somebody more familiar with Zend/PHP4 errors might need to flesh out the examples.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@31309 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Ron Chmara 2000-08-27 10:09:29 +00:00
parent 31a39eace2
commit 00ddc617d7

View file

@ -198,7 +198,8 @@
</row>
</tbody>
</tgroup>
</table></para>
</table>
</para>
<para>
<example role="php">
<title><function>error_log</function> examples</title>
@ -294,6 +295,27 @@ error_log ("You messed up!", 3, "/var/tmp/my-errors.log");
</tgroup>
</table>
</para>
<para>
<example role="php">
<title><function>error_reporting</function> examples</title>
<programlisting role="php">
error_reporting(0);
// Turn off all reporting
error_reporting(7);
// E_ERROR, E_WARNING, and E_PARSE
// 1+2+4 = 7, for basic running errors
error_reporting(15);
// E_ERROR, E_WARNING, E_PARSE, and E_NOTICE
// 1+2+4+8 = 15, good for code authoring to report
// uninitialized (possibly mis-spelled) variables
error_reporting(63);
// report all PHP errors, rarely used.
</programlisting>
</example>
</para>
</refsect1>
</refentry>