cvs: phpdoc /en/reference/errorfunc/functions set-error-handler.xml

From: Date: Mon, 28 Jun 2004 15:53:37 +0000
Subject: cvs: phpdoc /en/reference/errorfunc/functions set-error-handler.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969361560@lists.php.net to get a copy of this message
didou Mon Jun 28 11:53:37 2004 EDT Modified files: /phpdoc/en/reference/errorfunc/functions set-error-handler.xml Log: fix for #25543 : set_error_handler returns mixed http://cvs.php.net/diff.php/phpdoc/en/reference/errorfunc/functions/set-error-handler.xml?r1=1.21&r2=1.22&ty=u Index: phpdoc/en/reference/errorfunc/functions/set-error-handler.xml diff -u phpdoc/en/reference/errorfunc/functions/set-error-handler.xml:1.21 phpdoc/en/reference/errorfunc/functions/set-error-handler.xml:1.22 --- phpdoc/en/reference/errorfunc/functions/set-error-handler.xml:1.21 Mon May 10 06:45:25 2004 +++ phpdoc/en/reference/errorfunc/functions/set-error-handler.xml Mon Jun 28 11:53:36 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> +<!-- $Revision: 1.22 $ --> <!-- splitted from ./en/functions/errorfunc.xml, last change in rev 1.1 --> <refentry id="function.set-error-handler"> <refnamediv> @@ -11,17 +11,22 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>string</type><methodname>set_error_handler</methodname> + <type>mixed</type><methodname>set_error_handler</methodname> <methodparam><type>callback</type><parameter>error_handler</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>error_types</parameter></methodparam> </methodsynopsis> <para> Sets a user function (<parameter>error_handler</parameter>) to handle - errors in a script. Returns the previously defined error handler (if - any), or &false; on error. This function can be used for defining your own - way of handling errors during runtime, for example in applications in - which you need to do cleanup of data/files when a critical error happens, - or when you need to trigger an error under certain conditions (using + errors in a script. Returns a string containing the previously defined + error handler (if any), or &false; on error. If the previous handler + was a class method, this function will return an indexed array with + the class and the method name. + </para> + <para> + This function can be used for defining your own way of handling errors + during runtime, for example in applications in which you need to do + cleanup of data/files when a critical error happens, or when you need + to trigger an error under certain conditions (using <function>trigger_error</function>). </para> <para>

« previous php.doc (#969361560) next »