mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Returns bool (bug #29273)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163723 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a984ca4edd
commit
b02bfa1fd2
1 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/errorfunc.xml, last change in rev 1.1 -->
|
||||
<refentry id="function.trigger-error">
|
||||
<refnamediv>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>trigger_error</methodname>
|
||||
<type>bool</type><methodname>trigger_error</methodname>
|
||||
<methodparam><type>string</type><parameter>error_msg</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>error_type</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -22,6 +22,10 @@
|
|||
(<function>set_error_handler</function>). It only works with the E_USER
|
||||
family of constants, and will default to <constant>E_USER_NOTICE</constant>.
|
||||
</para>
|
||||
<para>
|
||||
This function returns &false; if wrong <parameter>error_type</parameter> is
|
||||
specified, &true; otherwise.
|
||||
</para>
|
||||
<para>
|
||||
This function is useful when
|
||||
you need to generate a particular response to an exception at runtime.
|
||||
|
|
Loading…
Reference in a new issue