mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
register_shutdown_function: incorporate user notes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@65613 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
07867a0b31
commit
6efe3809a4
1 changed files with 17 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.23 $ -->
|
||||
<!-- $Revision: 1.24 $ -->
|
||||
<reference id="ref.funchand">
|
||||
<title>Function Handling functions</title>
|
||||
<titleabbrev>Functions</titleabbrev>
|
||||
|
@ -575,15 +575,23 @@ Array
|
|||
</funcsynopsis>
|
||||
<simpara>
|
||||
Registers the function named by <parameter>func</parameter> to be
|
||||
executed when script processing is complete.</simpara>
|
||||
<para>
|
||||
Common Pitfalls:
|
||||
</para>
|
||||
<simpara>
|
||||
Since no output is allowed to the browser in this function, you
|
||||
will be unable to debug it using statements such as print or
|
||||
echo.
|
||||
executed when script processing is complete.
|
||||
</simpara>
|
||||
<para>
|
||||
Multiple calls to <function>register_shutdown_function</function> can be
|
||||
made, and each will be called in the same order as they were registered.
|
||||
If you call <function>exit</function> within one registered shutdown
|
||||
function, processing will stop completely and no other registered
|
||||
shutdown functions will be called.
|
||||
</para>
|
||||
<para>
|
||||
The registered shutdown functions are called after the request has been
|
||||
completed (including sending any output buffers), so it is not possible
|
||||
to send output to the browser using <function>echo</function> or
|
||||
<function>print</function>, or retrieve the contents of any output
|
||||
buffers using <function>ob_get_contents</function>.
|
||||
</para>
|
||||
¬e.func-callback;
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue