Hi,

thanks for the report. Committed to trunk in r1180325 and proposed for 2.2.22.

Note that Jim only did the actual commit. But the proposal and review were done by other people (see STATUS).

Cheers,
Stefan

On Fri, 7 Oct 2011, Torsten Förtsch wrote:
revision 1162854 fixes

 https://issues.apache.org/bugzilla/show_bug.cgi?id=45076

but introduces a very similar bug.

Modperl allows to write modules in Perl. Those modules can also register
hooks. The earliest point in time when that may happen is in
ap_process_config_tree() because there are config statements that
influence certain parameters of the perl interpreter. So, we have to
process those statements prior to starting the interpreter. But only the
perl interpreter knows which modules to load. Those modules then can
install hooks. But with revision 1162854 these hooks are called out of
order.

With the enclosed patch apr_hook_sort_all() is called once before
ap_run_pre_config() and then again after ap_process_config_tree().

The patch applies to 2.2.21 but the same change was made to trunk as
well. So, please apply it there too.

I'll reopen bug 45076.

Reply via email to