It should be:
modperl_apache_init_hooks(p);
void modperl_apache_init_hook_order(apr_pool_t p) { hook_order = apr_table_make(p, 0); }
ok, I'll do that. I was trying to solve a very strange problem that I couldn't figure out (but would probably obvious to someone else, naturally) - I was calling my get_hook_order() function from pre-init and initializing it, but for some reason the init wasn't taking.
but I like your solution much, much better. thanks.
Actually, you don't even need modperl_apache_init_hook_order(), just move that init code into: modperl_apache_get_hook_order();
void modperl_apache_get_hook_order(apr_pool_t *p) {
if (!hook_order) {
hook_order = apr_table_make(p, 0);
}
return hook_order;
}but you need to pass pool... so may be not... just another idea to make mod_perl.c less cluttered.
did you have a chance to look at the temp pool? if it does what I think it does (i.e. get destroyed at the end of config) then you could use it instead.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
