svn: /phpdoc/en/trunk/reference/funchand/functions/ register-shutdown-function.xml
| From: | Peter Cowburn | Date: | Mon, 12 Nov 2012 22:34:43 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/funchand/functions/ register-shutdown-function.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-10703@lists.php.net to get a copy of this message | ||
salathe Mon, 12 Nov 2012 22:34:43 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=328335
Log:
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)
Bugs: https://bugs.php.net/63275 (Open) Enhance
register_shutdown_function docs about SIGTERM handling
https://bugs.php.net/22227 (Closed) printf() field
limiters broke between 4.2.3 and 4.3.0
Changed paths:
U phpdoc/en/trunk/reference/funchand/functions/register-shutdown-function.xml
Modified: phpdoc/en/trunk/reference/funchand/functions/register-shutdown-function.xml
===================================================================
--- phpdoc/en/trunk/reference/funchand/functions/register-shutdown-function.xml 2012-11-12 22:34:30
UTC (rev 328334)
+++ phpdoc/en/trunk/reference/funchand/functions/register-shutdown-function.xml 2012-11-12 22:34:43
UTC (rev 328335)
@@ -142,6 +142,14 @@
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">