Returns void, not int. And generates E_WARNING for undefined functions.

This closes bug #23918


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@129633 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2003-05-31 14:48:44 +00:00
parent 39ff9ad9d6
commit 33abe5ee48

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 -->
<refentry id="function.register-shutdown-function">
<refnamediv>
@ -11,12 +11,14 @@
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>int</type><methodname>register_shutdown_function</methodname>
<type>void</type><methodname>register_shutdown_function</methodname>
<methodparam><type>callback</type><parameter>function</parameter></methodparam>
</methodsynopsis>
<simpara>
Registers the function named by <parameter>function</parameter> to be
executed when script processing is complete.
executed when script processing is complete. If the function
<parameter>function</parameter> does not exist (undefined), an error of
level <constant>E_WARNING</constant> is generated.
</simpara>
<para>
Multiple calls to <function>register_shutdown_function</function> can be