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

From: Date: Sun, 15 Jun 2003 10:11:33 +0000
Subject: cvs: phpdoc /en/reference/errorfunc/functions set-error-handler.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354469@lists.php.net to get a copy of this message
nicos Sun Jun 15 06:11:33 2003 EDT Modified files: /phpdoc/en/reference/errorfunc/functions set-error-handler.xml Log: ws and typos Index: phpdoc/en/reference/errorfunc/functions/set-error-handler.xml diff -u phpdoc/en/reference/errorfunc/functions/set-error-handler.xml:1.12 phpdoc/en/reference/errorfunc/functions/set-error-handler.xml:1.13 --- phpdoc/en/reference/errorfunc/functions/set-error-handler.xml:1.12 Sat Jun 14 13:48:17 2003 +++ phpdoc/en/reference/errorfunc/functions/set-error-handler.xml Sun Jun 15 06:11:32 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <!-- splitted from ./en/functions/errorfunc.xml, last change in rev 1.1 --> <refentry id="function.set-error-handler"> <refnamediv> @@ -16,16 +16,16 @@ </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 + 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 - <function>trigger_error</function>) + <function>trigger_error</function>). </para> <para> - The user function needs to accept 2 parameters: the error code, and a - string describing the error. From PHP 4.0.2, 3 optional + The user function needs to accept two parameters: the error code, and a + string describing the error. From PHP 4.0.2, three optional parameters are supplied: the filename in which the error occurred, the line number in which the error occurred, and the context in which the error occurred (an array that points to the active symbol table at the @@ -47,9 +47,8 @@ </para> </note> <para> - The example below shows the handling of - internal exceptions by triggering errors and handling them with a user - defined function: + The example below shows the handling of internal exceptions by + triggering errors and handling them with a user defined function: <example> <title> Error handling with <function>set_error_handler</function> and

« previous php.doc (#969354469) next »