mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- 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:
parent
add496cd9b
commit
c80e8ae094
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue