Home  |  Linux  | Mysql  | PHP  | XML
From:jhorwitz@cvs.perl.org Date:Wed Sep 24 09:51:50 2008
Subject:[svn:mod_parrot] r452 - mod_parrot/trunk/src
Author: jhorwitz
Date: Wed Sep 24 08:51:50 2008
New Revision: 452

Modified:
   mod_parrot/trunk/src/module.c

Log:
register meta hooks as HOOK_FIRST to avoid possible conflicts with apache
this fixes legacy auth* tests on apache 2.2+


Modified: mod_parrot/trunk/src/module.c
==============================================================================
--- mod_parrot/trunk/src/module.c	(original)
+++ mod_parrot/trunk/src/module.c	Wed Sep 24 08:51:50 2008
@@ -228,71 +228,71 @@
             switch(i) {
                 case MP_HOOK_OPEN_LOGS:
                     ap_hook_open_logs(modparrot_meta_open_logs_handler, NULL,
-                        NULL, APR_HOOK_MIDDLE);
+                        NULL, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_POST_CONFIG:
                     ap_hook_post_config(modparrot_meta_post_config_handler,
-                        NULL, NULL, APR_HOOK_MIDDLE);
+                        NULL, NULL, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_CHILD_INIT:
                     ap_hook_child_init(modparrot_meta_child_init_handler, NULL,
-                        NULL, APR_HOOK_MIDDLE);
+                        NULL, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_PRE_CONNECTION:
                     ap_hook_pre_connection(
                         modparrot_meta_pre_connection_handler, NULL, NULL,
-                            APR_HOOK_MIDDLE);
+                            APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_PROCESS_CONNECTION:
                     ap_hook_process_connection(
                         modparrot_meta_process_connection_handler, NULL, NULL,
-                            APR_HOOK_MIDDLE);
+                            APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_POST_READ_REQUEST:
                     ap_hook_post_read_request(
                         modparrot_meta_post_read_request_handler, NULL, NULL,
-                            APR_HOOK_MIDDLE);
+                            APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_MAP_TO_STORAGE:
                     ap_hook_map_to_storage(
                         modparrot_meta_map_to_storage_handler, NULL, NULL,
-                            APR_HOOK_MIDDLE);
+                            APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_TRANS:
                     ap_hook_translate_name(modparrot_meta_trans_handler, NULL,
-                        NULL, APR_HOOK_MIDDLE);
+                        NULL, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_HEADER_PARSER:
                     ap_hook_header_parser(modparrot_meta_header_parser_handler,
-                        NULL, NULL, APR_HOOK_MIDDLE);
+                        NULL, NULL, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_ACCESS:
                     ap_hook_access_checker(modparrot_meta_access_handler, NULL,
-                        NULL, APR_HOOK_MIDDLE);
+                        NULL, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_AUTHEN:
                     ap_hook_check_user_id(modparrot_meta_authen_handler, NULL,
-                        NULL, APR_HOOK_MIDDLE);
+                        NULL, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_AUTHZ:
                     ap_hook_auth_checker(modparrot_meta_authz_handler, NULL,
-                        aszSucc, APR_HOOK_MIDDLE);
+                        aszSucc, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_RESPONSE:
                     ap_hook_handler(modparrot_meta_response_handler, NULL,
-                        NULL, APR_HOOK_MIDDLE);
+                        NULL, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_TYPE:
                     ap_hook_type_checker(modparrot_meta_type_handler, NULL,
-                        NULL, APR_HOOK_MIDDLE);
+                        NULL, APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_FIXUP:
                     ap_hook_fixups(modparrot_meta_fixup_handler, NULL, NULL,
-                        APR_HOOK_MIDDLE);
+                        APR_HOOK_FIRST);
                     break;
                 case MP_HOOK_LOG:
                     ap_hook_log_transaction(modparrot_meta_log_handler, NULL,
-                        NULL, APR_HOOK_MIDDLE);
+                        NULL, APR_HOOK_FIRST);
                     break;
                 default:
                     /* we should NEVER get here by definition */
Navigate in group perl.cvs.mod_parrot at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants