You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Rui Hu <tc...@gmail.com> on 2012/02/29 11:47:43 UTC
one problem when calling ap_get_module_config
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.
Is there any caution in calling this function?
Thanks!
Best regards,
Rui Hu
----------------------------------------------------------------------------------------
State Key Laboratory of Networking & Switching Technology
Beijing University of Posts and Telecommunications(BUPT)
MSN: tchrbupt@gmail.com
-----------------------------------------------------------------------------------------
Re: one problem when calling ap_get_module_config
Posted by Rui Hu <tc...@gmail.com>.
thanks!
Problem solved. It the problem with internal redirects.
2012/2/29 Nick Kew <ni...@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
>
>
--
Best regards,
Rui Hu
----------------------------------------------------------------------------------------
State Key Laboratory of Networking & Switching Technology
Beijing University of Posts and Telecommunications(BUPT)
MSN: tchrbupt@gmail.com
-----------------------------------------------------------------------------------------
Re: one problem when calling ap_get_module_config
Posted by Nick Kew <ni...@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