Index: src/modules/perl/mod_perl.c
===================================================================
RCS file: /home/cvs/modperl-2.0/src/modules/perl/mod_perl.c,v
retrieving revision 1.210
diff -u -r1.210 mod_perl.c
--- src/modules/perl/mod_perl.c 1 Mar 2004 04:24:00 -0000 1.210
+++ src/modules/perl/mod_perl.c 1 Mar 2004 04:57:56 -0000
@@ -543,6 +543,11 @@
{
/* we can't have PerlPreConfigHandler without first configuring mod_perl */
+ /* PerlHook*Handler support */
+ apr_table_t *hook_order = apr_table_make(p, 0);
why the duplicate? You already have hook_order static var in modperl_apache.c
It should be:
modperl_apache_init_hooks(p);
with the above code moved to modperl_apache.c. (see below).
+ modperl_apache_set_hook_order(hook_order);
no need for this function at all.
/* perl 5.8.1+ */
modperl_hash_seed_init(p);
@@ -573,6 +578,9 @@
modperl_trace_logfile_set(s->error_log);
#endif
+ /* fixup the placement of user-defined Perl*Handlers in the hook order */
+ modperl_apache_resort_hooks();
yup, just like that one. two calls from mod_perl.c but none really gets/passes hook_order.
--- /dev/null 2003-01-30 05:24:37.000000000 -0500
+++ src/modules/perl/modperl_apache.c 2004-02-29 23:42:16.000000000 -0500
@@ -0,0 +1,115 @@
+#include "mod_perl.h"
+
+/* PerlHook*Handler support */
+static apr_table_t *hook_order;
+
+apr_table_t *modperl_apache_get_hook_order() {
+ return hook_order;
+}
void modperl_apache_init_hook_order(apr_pool_t p) { hook_order = apr_table_make(p, 0); }
+void modperl_apache_set_hook_order(apr_table_t *set_order) {
+ hook_order = set_order;
+}
nuke that one. __________________________________________________________________ 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]
