From afdb358b2c88123fa0b3e5361f85ed33af93f4d2 Mon Sep 17 00:00:00 2001 From: Dave Barr Date: Thu, 26 Aug 2004 05:37:58 +0000 Subject: [PATCH] - Fix broken build ( without a ), and other things. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167287 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/set-exception-handler.xml | 37 +++++++++---------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/reference/errorfunc/functions/set-exception-handler.xml b/reference/errorfunc/functions/set-exception-handler.xml index 0687035a90..724c29fada 100644 --- a/reference/errorfunc/functions/set-exception-handler.xml +++ b/reference/errorfunc/functions/set-exception-handler.xml @@ -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 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"; restore_exception_handler restore_error_handler error_reporting&listendand; - PHP5 Exceptions + PHP 5 Exceptions