|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-03-06 04:52 UTC] laruence@php.net
-Assigned To:
+Assigned To: fat
[2013-10-27 17:59 UTC] tony2001@php.net
-Status: Assigned
+Status: Closed
[2013-10-27 17:59 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 02:00:01 2025 UTC |
Description: ------------ When a php-fpm child process shuts down it does not call module shutdown. Check out sapi/fpm/fpm/fpm_main.c line 1917 in out: if (parent) { php_module_shutdown(TSRMLS_C); sapi_shutdown(); } I'm pretty sure this should be php_module_shutdown(TSRMLS_C); if (parent) { sapi_shutdown(); } This caused us problems in our custom PHP extension because we need to clean up when a child exits, closing sockets and freeing resources. Thanks. Patch attached patch sapi/fpm/fpm/fpm_main.c fpm_child_mshutdown.patch