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:
Jakub Vrana 2004-07-20 09:44:50 +00:00
parent a984ca4edd
commit b02bfa1fd2

View file

@ -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.