svn: /phpdoc/en/trunk/reference/errorfunc/functions/ set-exception-handler.xml
| From: | Justin Martin | Date: | Sat, 14 Jan 2012 06:03:19 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/errorfunc/functions/ set-exception-handler.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9470@lists.php.net to get a copy of this message | ||
frozenfire Sat, 14 Jan 2012 06:03:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=322259
Log:
set_exception_handler accepts null to reset handler to default state. Closes bug #60737.
Bug: https://bugs.php.net/60737 (Open) Note that
set_exception_handler accepts NULL as parameter
Changed paths:
U phpdoc/en/trunk/reference/errorfunc/functions/set-exception-handler.xml
Modified: phpdoc/en/trunk/reference/errorfunc/functions/set-exception-handler.xml
===================================================================
--- phpdoc/en/trunk/reference/errorfunc/functions/set-exception-handler.xml 2012-01-14 05:55:44 UTC
(rev 322258)
+++ phpdoc/en/trunk/reference/errorfunc/functions/set-exception-handler.xml 2012-01-14 06:03:19 UTC
(rev 322259)
@@ -35,6 +35,12 @@
needs to accept one parameter, which will be the exception object that
was thrown.
</para>
+ <note>
+ <para>
+ &null; may be passed instead, to reset this handler to its
+ default state.
+ </para>
+ </note>
</listitem>
</varlistentry>
</variablelist>
@@ -45,7 +51,8 @@
&reftitle.returnvalues;
<para>
Returns the name of the previously defined exception handler, or &null; on error. If
- no previous handler was defined, &null; is also returned.
+ no previous handler was defined, &null; is also returned. If &null; is passed,
+ resetting the handler to its default state, &true; is returned.
</para>
</refsect1>