Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28938 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90950 invoked by uid 1010); 20 Apr 2007 15:23:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 90935 invoked from network); 20 Apr 2007 15:23:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2007 15:23:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=mba2000@ioplex.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mba2000@ioplex.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ioplex.com from 66.220.1.142 cause and error) X-PHP-List-Original-Sender: mba2000@ioplex.com X-Host-Fingerprint: 66.220.1.142 www.ioplex.com Linux 2.4/2.6 Received: from [66.220.1.142] ([66.220.1.142:3916] helo=www.ioplex.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/E3-54915-1FAD8264 for ; Fri, 20 Apr 2007 11:23:30 -0400 Received: from quark.foo.net (c-69-142-196-170.hsd1.nj.comcast.net [69.142.196.170]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.ioplex.com (Postfix) with ESMTP id 0D3AA42B65; Fri, 20 Apr 2007 11:23:25 -0400 (EDT) Date: Fri, 20 Apr 2007 11:23:22 -0400 To: Rasmus Lerdorf Cc: derick@php.net, internals@lists.php.net Message-ID: <20070420112322.6f7a0ef6.mba2000@ioplex.com> In-Reply-To: <46288089.6010408@lerdorf.com> References: <20070419234608.32e31f61.mba2000@ioplex.com> <20070420035154.4d8e8c14.mba2000@ioplex.com> <46288089.6010408@lerdorf.com> X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Unexpected Extension Deinitializing on Startup From: mba2000@ioplex.com (Michael B Allen) On Fri, 20 Apr 2007 01:57:45 -0700 Rasmus Lerdorf wrote: > 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. Well it doesn't sound like this is something they just started doing. My PHP extension has been tested on numerous platforms and I have only ever seen the PHP module initialization / deinitialization routines called once on startup / shutdown. Even if the actual PHP module is loaded and unloaded, do you call the (de)initialization routines for each (unl)load? I'm not sure this issue is the issue I'm seeing. Mike -- Michael B Allen PHP Active Directory Kerberos SSO http://www.ioplex.com/