Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17798 invoked by uid 1010); 17 Jul 2004 17:30:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16445 invoked from network); 17 Jul 2004 17:30:15 -0000 Received: from unknown (HELO www.entertain-me.com) (68.167.196.149) by pb1.pair.com with SMTP; 17 Jul 2004 17:30:15 -0000 Received: from [192.168.2.3] (wg.entertain-me.com [192.168.1.10]) by www.entertain-me.com (Postfix) with ESMTP id AB3AC1A203; Sat, 17 Jul 2004 13:30:14 -0400 (EDT) To: Justin Hannus Cc: internals@lists.php.net In-Reply-To: <40F92B04.3050507@128kb.com> References: <1089955317.20273.36.camel@vanier.entertain-me.com> <40F92B04.3050507@128kb.com> Content-Type: text/plain Message-ID: <1090085414.20273.43.camel@vanier.entertain-me.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 17 Jul 2004 13:30:14 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Question from a new module developer From: apache@entertain-me.com (David Carter) Well, on the surface it looks good, but the apache2filter and apache2handler sections say it returns a structure that has the request_rec as a member. I'll try it but it looks flaky... Dave On Sat, 2004-07-17 at 09:35, Justin Hannus wrote: > David Carter wrote: > > Hi, > > > > I'm developing a standalone module that needs to hook into another > > Apache module. I need a pointer to a request record (request_rec) to > > make the apache call, but I can't seem to find how to access one from a > > module. (or alternatively, a way to get a current request from within an > > Apache module). > > > > Help! > > > > TIA, > > Dave > > You might be looking for: > > ((request_rec *)SG(server_context)) > > Have a look at sapi/apache/php_apache.c for some examples.