Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 56182 invoked from network); 26 Sep 2006 06:06:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 06:06:00 -0000 Received: (qmail 37169 invoked by uid 500); 26 Sep 2006 06:05:55 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 37153 invoked by uid 500); 26 Sep 2006 06:05:54 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 37136 invoked by uid 99); 26 Sep 2006 06:05:54 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 23:05:54 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=fabbe@paniq.net; spf=pass X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: pass (idunn.apache.osuosl.org: domain paniq.net designates 81.22.245.56 as permitted sender) Received: from [81.22.245.56] ([81.22.245.56:60426] helo=nautilus.neoisis.net) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 32/82-05106-F33C8154 for ; Mon, 25 Sep 2006 23:05:53 -0700 Received: from adsl-62-220-230-201.fonet.fi ([62.220.230.201] helo=[192.168.104.126]) by nautilus.neoisis.net with esmtpsa (SSL 3.0:RSA_ARCFOUR_MD5:16) (Exim 4.50) id 1GS64b-0002gk-K3 for modperl@perl.apache.org; Tue, 26 Sep 2006 09:05:48 +0300 Subject: Re: Hooking into arbitrary ap_hook_* functions From: Fabian Fagerholm To: modperl@perl.apache.org In-Reply-To: <4518B5FA.7010804@p6m7g8.com> References: <1159194771.6168.36.camel@localhost> <4518B5FA.7010804@p6m7g8.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-3QE9N6TldBfMkZMKyjsh" Date: Tue, 26 Sep 2006 09:05:35 +0300 Message-Id: <1159250735.6168.52.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 X-Virus-Scanned: Scanned at neoisis.net X-Spam-Scanned: Scanned at neoisis.net X-Spam-Score: -2.5 X-Spam-Score-Int: -24 X-Spam-Level: -- X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=-3QE9N6TldBfMkZMKyjsh Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2006-09-25 at 22:09 -0700, Philip M. Gollucci wrote: > I believe you want this file: > xs/maps/apache2_functions.map [...] > see src/modules/perl/mod_perl.c:modperl_register_hooks() Excellent, this helps understanding the mod_perl internals. Apparently the hooks really are hardcoded, and I count around 20 implemented hook functions and around 30 unimplemented hook functions in the map file. > I don't think it would be terribly hard to add this functionality, but > there might be some reason why we don't already do it ????? By "this functionality", do you mean "implementing an arbitrary ap_hook_* function in mod_perl" or "implementing an ap_hook_get_suexec_identity function in mod_perl"? :) Anyway, it looks like I can't implement all the functionality of the modules in question in mod_perl right now. I'll probably look at isolating the stuff that requires C into a few small modules and write the rest in mod_perl. Thanks for the pointers! --=20 Fabian Fagerholm --=-3QE9N6TldBfMkZMKyjsh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFGMMv76VUNpZBmeIRAkECAJ42vp/0jfU8Hg3CzWog2QT21jHZowCeO5Cc TdgGb+ekNbg9NnMfhCZu2kw= =2HVB -----END PGP SIGNATURE----- --=-3QE9N6TldBfMkZMKyjsh--