cvs: phpdoc /en/reference/funchand/functions register-shutdown-function.xml
| From: | Philip Olson | Date: | Sat, 31 May 2003 14:48:44 +0000 |
| Subject: | cvs: phpdoc /en/reference/funchand/functions register-shutdown-function.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969354130@lists.php.net to get a copy of this message | ||
philip Sat May 31 10:48:44 2003 EDT
Modified files:
/phpdoc/en/reference/funchand/functions
register-shutdown-function.xml
Log:
Returns void, not int. And generates E_WARNING for undefined functions.
This closes bug #23918
Index: phpdoc/en/reference/funchand/functions/register-shutdown-function.xml
diff -u phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.3
phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.4
--- phpdoc/en/reference/funchand/functions/register-shutdown-function.xml:1.3 Sat Oct 26 16:40:42
2002
+++ phpdoc/en/reference/funchand/functions/register-shutdown-function.xml Sat May 31 10:48:44 2003
@@ -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