- wrap function name in <function>

- Ident the example


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@278088 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2009-03-31 18:35:16 +00:00
parent add496cd9b
commit c80e8ae094

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<phpdoc:exceptionref xml:id="class.errorexception"
xmlns="http://docbook.org/ns/docbook"
@ -76,12 +76,12 @@
&reftitle.examples;
<para>
<example xml:id="errorexception.example.error-handler"><!-- {{{ -->
<title>Use set_error_handler to change error messages into ErrorException.</title>
<title>Use <function>set_error_handler</function> to change error messages into ErrorException.</title>
<programlisting role="php">
<![CDATA[
<?php
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
set_error_handler("exception_error_handler");