svn: /phpdoc/en/trunk/reference/errorfunc/functions/ restore-exception-handler.xml
| From: | Richard Quadling | Date: | Wed, 03 Feb 2010 13:25:41 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/errorfunc/functions/ restore-exception-handler.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5982@lists.php.net to get a copy of this message | ||
rquadling Wed, 03 Feb 2010 13:25:41 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=294382
Log:
W/S tabs
Changed paths:
U phpdoc/en/trunk/reference/errorfunc/functions/restore-exception-handler.xml
Modified: phpdoc/en/trunk/reference/errorfunc/functions/restore-exception-handler.xml
===================================================================
--- phpdoc/en/trunk/reference/errorfunc/functions/restore-exception-handler.xml 2010-02-03 13:24:14
UTC (rev 294381)
+++ phpdoc/en/trunk/reference/errorfunc/functions/restore-exception-handler.xml 2010-02-03 13:25:41
UTC (rev 294382)
@@ -37,22 +37,22 @@
<programlisting role="php">
<![CDATA[
<?php
- function exception_handler_1(Exception $e)
- {
- echo '[' . __FUNCTION__ . '] ' . $e->getMessage();
- }
+ function exception_handler_1(Exception $e)
+ {
+ echo '[' . __FUNCTION__ . '] ' . $e->getMessage();
+ }
- function exception_handler_2(Exception $e)
- {
- echo '[' . __FUNCTION__ . '] ' . $e->getMessage();
- }
+ function exception_handler_2(Exception $e)
+ {
+ echo '[' . __FUNCTION__ . '] ' . $e->getMessage();
+ }
- set_exception_handler('exception_handler_1');
- set_exception_handler('exception_handler_2');
+ set_exception_handler('exception_handler_1');
+ set_exception_handler('exception_handler_2');
- restore_exception_handler();
+ restore_exception_handler();
- throw new Exception('This triggers the first exception handler...');
+ throw new Exception('This triggers the first exception handler...');
?>
]]>
</programlisting>