dave            Thu Aug 26 01:37:58 2004 EDT

  Modified files:              
    /phpdoc/en/reference/errorfunc/functions    set-exception-handler.xml 
  Log:
  - Fix broken build (<example> without a <title>), and other things.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/errorfunc/functions/set-exception-handler.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/errorfunc/functions/set-exception-handler.xml
diff -u phpdoc/en/reference/errorfunc/functions/set-exception-handler.xml:1.2 
phpdoc/en/reference/errorfunc/functions/set-exception-handler.xml:1.3
--- phpdoc/en/reference/errorfunc/functions/set-exception-handler.xml:1.2       Wed 
Aug 25 22:28:16 2004
+++ phpdoc/en/reference/errorfunc/functions/set-exception-handler.xml   Thu Aug 26 
01:37:58 2004
@@ -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 @@
    <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>

Reply via email to