Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91542 invoked by uid 1010); 20 Apr 2007 08:58:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91527 invoked from network); 20 Apr 2007 08:58:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2007 08:58:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:49546] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/2A-19618-09088264 for ; Fri, 20 Apr 2007 04:57:54 -0400 Received: from shiny.lerdorf.com (c-24-6-22-164.hsd1.ca.comcast.net [24.6.22.164]) (authenticated bits=0) by mail.lerdorf.com (8.13.8/8.13.8/Debian-3) with ESMTP id l3K8vjx6032646; Fri, 20 Apr 2007 01:57:45 -0700 Message-ID: <46288089.6010408@lerdorf.com> Date: Fri, 20 Apr 2007 01:57:45 -0700 User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Michael B Allen CC: Derick Rethans , internals@lists.php.net References: <20070419234608.32e31f61.mba2000@ioplex.com> <20070420035154.4d8e8c14.mba2000@ioplex.com> In-Reply-To: <20070420035154.4d8e8c14.mba2000@ioplex.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.2/3135/Thu Apr 19 14:08:24 2007 on colo X-Virus-Status: Clean Subject: Re: [PHP-DEV] Unexpected Extension Deinitializing on Startup From: rasmus@lerdorf.com (Rasmus Lerdorf) Michael B Allen wrote: > On Fri, 20 Apr 2007 09:20:26 +0200 (CEST) > Derick Rethans wrote: > >> On Thu, 19 Apr 2007, Michael B Allen wrote: >> >>> Is there an Apache or PHP setting that would cause an extension to be >>> deinitilized in the initial root process on startup? >> It's an Apache thing. First it brings up all modules (like mod_php) to >> figure out which settings it supports. Then it shuts down everything. >> Then it starts the real start up process and initializes all modules >> again. > > Hi Derick, > > Is this behavior documented anywhere? I suppose I should just get on > the Apache list and ask there ... This question has probably been asked a hundred times on the Apache lists. There really isn't much decent documentation out there on how to write Apache modules. The Apache1 code is rather simple, so most people just read the server code to figure it out. The closest thing to real documentation is an old book called "Writing Apache Modules with Perl and C" by Lincoln Stein and Doug MacEachern. You'll want to read chapter 3 - "The Apache Module Architecture and API" where this particular topic is covered. -Rasmus