mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Fix broken build (<example> without a <title>), and other things.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167287 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3b39595fab
commit
afdb358b2c
1 changed files with 17 additions and 20 deletions
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<refentry id="function.set-exception-handler">
|
||||
<refnamediv>
|
||||
<refname>set_exception_handler</refname>
|
||||
<refpurpose>
|
||||
Sets a user-defined exception handler function
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refpurpose>
|
||||
Sets a user-defined exception handler function
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
|
@ -41,15 +41,15 @@
|
|||
<refsect1>
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>exception_handler</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Name of function to be called when an uncaught exception occurs.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>exception_handler</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Name of function to be called when an uncaught exception occurs.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -64,19 +64,16 @@
|
|||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>set_exception_handler</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
function exception_handler($exception) {
|
||||
|
||||
echo "Uncaught excepction: " , $exception->getMessage(), "\n";
|
||||
|
||||
echo "Uncaught exception: " , $exception->getMessage(), "\n";
|
||||
}
|
||||
|
||||
set_exception_handler('exception_handler');
|
||||
|
||||
|
||||
throw new Exception('Uncaught Exception');
|
||||
echo "Not Executed\n";
|
||||
]]>
|
||||
|
@ -90,7 +87,7 @@ echo "Not Executed\n";
|
|||
<function>restore_exception_handler</function>
|
||||
<function>restore_error_handler</function>
|
||||
<function>error_reporting</function>&listendand;
|
||||
<link linkend="language.oop5.exceptions">PHP5 Exceptions</link>
|
||||
<link linkend="language.oop5.exceptions">PHP 5 Exceptions</link>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue