Adding a note that shutdown functions won't be executed if the script gets a SIGTERM or SIGKILL, though you can pcntl_signal() for the TERM and exit;. (doc #63275)

--
Provided by anonymous #22227 (mail+php@requinix.net)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328335 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Peter Cowburn 2012-11-12 22:34:43 +00:00
parent 9ee94cd5a8
commit 2156ae971c

View file

@ -142,6 +142,14 @@ register_shutdown_function('shutdown');
under some web servers, e.g. Apache.
</para>
</note>
<note>
<para>
Shutdown functions will not be executed if the process is killed with a SIGTERM
or SIGKILL signal. While you cannot intercept a SIGKILL, you can use <function>pcntl_signal</function>
to install a handler for a SIGTERM which uses <function>exit</function> to
end cleanly.
</para>
</note>
</refsect1>
<refsect1 role="seealso">