|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-10-31 20:19 UTC] mail+php at requinix dot net
[2012-11-12 22:34 UTC] salathe@php.net
[2012-11-12 22:41 UTC] salathe@php.net
[2012-11-12 22:41 UTC] salathe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: salathe
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 21:00:02 2025 UTC |
Description: ------------ There should be a note added to the documentation on register_shutdown_function that the callbacks will not be run if the process is killed via SIGTERM/SIGKILL, however they will run if SIGTERM is intercepted with pcntl_signal and the callback causes the script to exit cleanly; i.e. pcntl_signal(SIGTERM, function() { exit; }); Given the semantics of SIGTERM (request a clean shutdown of the process), it's unintuitive to not get the behavior of using "exit;", although I can see the reasoning for doing so.