Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B1AC97EE for ; Wed, 29 Feb 2012 11:19:46 +0000 (UTC) Received: (qmail 72651 invoked by uid 500); 29 Feb 2012 11:19:45 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 72621 invoked by uid 500); 29 Feb 2012 11:19:45 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 72613 invoked by uid 99); 29 Feb 2012 11:19:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 11:19:45 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.20.83.52] (HELO gungnir.webthing.com) (209.20.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 11:19:38 +0000 Received: from [192.168.2.4] (walkham.free-online.co.uk [80.229.52.226]) by gungnir.webthing.com (Postfix) with ESMTPSA id B4D70E8C51 for ; Wed, 29 Feb 2012 11:19:16 +0000 (UTC) References: In-Reply-To: Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Message-Id: <7607FB62-E9CC-402F-8582-33451E7C160C@apache.org> Content-Transfer-Encoding: 7bit From: Nick Kew Subject: Re: one problem when calling ap_get_module_config Date: Wed, 29 Feb 2012 11:19:14 +0000 To: modules-dev@httpd.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org On 29 Feb 2012, at 10:47, Rui Hu wrote: > I use r->request_config to store module data as a substitute for global > vars. One type_checker_hook function uses ap_get_module_config at its > beginning. But what I got is NULL. Strangely, post_read_request_hook > function works fine, whose codes is basically the same. Any subrequests or internal redirects involved? Look carefully at the request object itself. Or tyops? -- Nick Kew