mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fix for #25543 : set_error_handler returns mixed
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@162242 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1a891a9b98
commit
f8cf1cc241
1 changed files with 12 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue