Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50136 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60071 invoked from network); 11 Nov 2010 00:01:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2010 00:01:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=jerome@loyet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jerome@loyet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain loyet.net from 74.125.83.42 cause and error) X-PHP-List-Original-Sender: jerome@loyet.net X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:58649] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/31-40603-F523BDC4 for ; Wed, 10 Nov 2010 19:01:36 -0500 Received: by gwb10 with SMTP id 10so405095gwb.29 for ; Wed, 10 Nov 2010 16:01:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.217.129 with SMTP id hm1mr229341icb.43.1289433692966; Wed, 10 Nov 2010 16:01:32 -0800 (PST) Received: by 10.42.144.195 with HTTP; Wed, 10 Nov 2010 16:01:32 -0800 (PST) Date: Thu, 11 Nov 2010 01:01:32 +0100 Message-ID: To: php-dev Content-Type: text/plain; charset=ISO-8859-1 Subject: [FPM] when to call extensions MINIT and MSHUTDOWN From: jerome@loyet.net (=?ISO-8859-1?B?Suly9G1lIExveWV0?=) Hi guys, I'm sure when FPM should call extensions MINIT and MSHUTDOWN functions. MINIT is called once by the master process after it forks any children. It's done by calling php_module_startup() in cgi_sapi_module.startup(). MSHUTDOWN is also called by the master process before exiting and after it kills all its children. It's done by calling php_module_shutdown_wrapper(); Is it normal behaviour ? Or should MINIT and MSHUTDOWN be also called in each child process somehow ? Thanks ++ Jerome