Lines Matching refs:conf
80 static CONST_PREFIX char *php_apache_value_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, …
81 static CONST_PREFIX char *php_apache_value_handler(cmd_parms *cmd, php_per_dir_config *conf, char *…
82 static CONST_PREFIX char *php_apache_admin_value_handler(cmd_parms *cmd, php_per_dir_config *conf, …
83 static CONST_PREFIX char *php_apache_flag_handler(cmd_parms *cmd, php_per_dir_config *conf, char *a…
84 static CONST_PREFIX char *php_apache_flag_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, c…
85 static CONST_PREFIX char *php_apache_admin_flag_handler(cmd_parms *cmd, php_per_dir_config *conf, c…
810 static void php_destroy_per_server_info(php_per_server_config *conf) in php_destroy_per_server_info() argument
812 php_handler_stack_destroy(&conf->requires); in php_destroy_per_server_info()
813 php_handler_stack_destroy(&conf->uri_handlers); in php_destroy_per_server_info()
819 static void php_destroy_per_dir_info(php_per_dir_config *conf) in php_destroy_per_dir_info() argument
821 zend_hash_destroy(conf->ini_settings); in php_destroy_per_dir_info()
822 php_handler_stack_destroy(&conf->response_handlers); in php_destroy_per_dir_info()
823 php_handler_stack_destroy(&conf->auth_handlers); in php_destroy_per_dir_info()
824 php_handler_stack_destroy(&conf->access_handlers); in php_destroy_per_dir_info()
825 php_handler_stack_destroy(&conf->type_handlers); in php_destroy_per_dir_info()
826 php_handler_stack_destroy(&conf->fixup_handlers); in php_destroy_per_dir_info()
827 php_handler_stack_destroy(&conf->logger_handlers); in php_destroy_per_dir_info()
828 php_handler_stack_destroy(&conf->post_read_handlers); in php_destroy_per_dir_info()
829 php_handler_stack_destroy(&conf->headers_handlers); in php_destroy_per_dir_info()
830 free(conf->ini_settings); in php_destroy_per_dir_info()
838 php_per_server_config *conf; in php_create_server() local
839 conf = (php_per_server_config *) malloc(sizeof(php_per_server_config)); in php_create_server()
840 …register_cleanup(p, (void *) conf, (void (*)(void *)) php_destroy_per_server_info, (void (*)(void … in php_create_server()
842 sapi_stack_init_ex(&conf->requires, 1); in php_create_server()
843 sapi_stack_init_ex(&conf->uri_handlers, 1); in php_create_server()
844 return conf; in php_create_server()
854 php_per_dir_config *conf; in php_create_dir() local
855 conf = (php_per_dir_config *) malloc(sizeof(php_per_dir_config)); in php_create_dir()
856 conf->ini_settings = (HashTable *) malloc(sizeof(HashTable)); in php_create_dir()
857 zend_hash_init_ex(conf->ini_settings, 5, NULL, (void (*)(void *)) destroy_per_dir_entry, 1, 0); in php_create_dir()
858 sapi_stack_init_ex(&conf->response_handlers, 1); in php_create_dir()
859 sapi_stack_init_ex(&conf->headers_handlers, 1); in php_create_dir()
860 sapi_stack_init_ex(&conf->auth_handlers, 1); in php_create_dir()
861 sapi_stack_init_ex(&conf->access_handlers, 1); in php_create_dir()
862 sapi_stack_init_ex(&conf->type_handlers, 1); in php_create_dir()
863 sapi_stack_init_ex(&conf->fixup_handlers, 1); in php_create_dir()
864 sapi_stack_init_ex(&conf->logger_handlers, 1); in php_create_dir()
865 sapi_stack_init_ex(&conf->post_read_handlers, 1); in php_create_dir()
866 …register_cleanup(p, (void *) conf, (void (*)(void *)) php_destroy_per_dir_info, (void (*)(void *))… in php_create_dir()
868 return conf; in php_create_dir()
895 static CONST_PREFIX char *php_apache_value_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, … in php_apache_value_handler_ex() argument
924 …zend_hash_update(conf, per_dir_entry.key, per_dir_entry.key_length, &per_dir_entry, sizeof(php_per… in php_apache_value_handler_ex()
931 php_per_server_config *conf; in php_set_server_handler() local
937 conf = get_module_config(s->module_config, &php5_module); in php_set_server_handler()
940 sapi_stack_push(&conf->uri_handlers, handler); in php_set_server_handler()
943 sapi_stack_push(&conf->requires, handler); in php_set_server_handler()
949 static CONST_PREFIX char *php_set_dir_handler(php_per_dir_config *conf, char *arg1, long handler_st… in php_set_dir_handler() argument
958 sapi_stack_push(&conf->post_read_handlers, handler); in php_set_dir_handler()
961 sapi_stack_push(&conf->headers_handlers, handler); in php_set_dir_handler()
964 sapi_stack_push(&conf->access_handlers, handler); in php_set_dir_handler()
967 sapi_stack_push(&conf->auth_handlers, handler); in php_set_dir_handler()
972 sapi_stack_push(&conf->type_handlers, handler); in php_set_dir_handler()
975 sapi_stack_push(&conf->fixup_handlers, handler); in php_set_dir_handler()
978 sapi_stack_push(&conf->response_handlers, handler); in php_set_dir_handler()
981 sapi_stack_push(&conf->logger_handlers, handler); in php_set_dir_handler()
1006 static CONST_PREFIX char *php_set_header_handler(cmd_parms *cmd, php_per_dir_config *conf, char *ar… in php_set_header_handler() argument
1008 return php_set_dir_handler(conf, arg1, AP_HEADER_PARSE, AP_HANDLER_TYPE_FILE); in php_set_header_handler()
1010 static CONST_PREFIX char *php_set_header_handler_code(cmd_parms *cmd, php_per_dir_config *conf, cha… in php_set_header_handler_code() argument
1012 return php_set_dir_handler(conf, arg1, AP_HEADER_PARSE, AP_HANDLER_TYPE_METHOD); in php_set_header_handler_code()
1018 static CONST_PREFIX char *php_set_auth_handler(cmd_parms *cmd, php_per_dir_config *conf, char *arg1) in php_set_auth_handler() argument
1020 return php_set_dir_handler(conf, arg1, AP_AUTHENTICATION, AP_HANDLER_TYPE_FILE); in php_set_auth_handler()
1022 static CONST_PREFIX char *php_set_auth_handler_code(cmd_parms *cmd, php_per_dir_config *conf, char … in php_set_auth_handler_code() argument
1024 return php_set_dir_handler(conf, arg1, AP_AUTHENTICATION, AP_HANDLER_TYPE_METHOD); in php_set_auth_handler_code()
1031 static CONST_PREFIX char *php_set_access_handler(cmd_parms *cmd, php_per_dir_config *conf, char *ar… in php_set_access_handler() argument
1033 return php_set_dir_handler(conf, arg1, AP_ACCESS_CONTROL, AP_HANDLER_TYPE_FILE); in php_set_access_handler()
1035 static CONST_PREFIX char *php_set_access_handler_code(cmd_parms *cmd, php_per_dir_config *conf, cha… in php_set_access_handler_code() argument
1037 return php_set_dir_handler(conf, arg1, AP_ACCESS_CONTROL, AP_HANDLER_TYPE_METHOD); in php_set_access_handler_code()
1044 static CONST_PREFIX char *php_set_type_handler(cmd_parms *cmd, php_per_dir_config *conf, char *arg1) in php_set_type_handler() argument
1046 return php_set_dir_handler(conf, arg1, AP_TYPE_CHECKING, AP_HANDLER_TYPE_FILE); in php_set_type_handler()
1048 static CONST_PREFIX char *php_set_type_handler_code(cmd_parms *cmd, php_per_dir_config *conf, char … in php_set_type_handler_code() argument
1050 return php_set_dir_handler(conf, arg1, AP_TYPE_CHECKING, AP_HANDLER_TYPE_METHOD); in php_set_type_handler_code()
1057 static CONST_PREFIX char *php_set_fixup_handler(cmd_parms *cmd, php_per_dir_config *conf, char *arg… in php_set_fixup_handler() argument
1059 return php_set_dir_handler(conf, arg1, AP_FIXUP, AP_HANDLER_TYPE_FILE); in php_set_fixup_handler()
1061 static CONST_PREFIX char *php_set_fixup_handler_code(cmd_parms *cmd, php_per_dir_config *conf, char… in php_set_fixup_handler_code() argument
1063 return php_set_dir_handler(conf, arg1, AP_FIXUP, AP_HANDLER_TYPE_METHOD); in php_set_fixup_handler_code()
1069 static CONST_PREFIX char *php_set_logger_handler(cmd_parms *cmd, php_per_dir_config *conf, char *ar… in php_set_logger_handler() argument
1071 return php_set_dir_handler(conf, arg1, AP_LOGGING, AP_HANDLER_TYPE_FILE); in php_set_logger_handler()
1073 static CONST_PREFIX char *php_set_logger_handler_code(cmd_parms *cmd, php_per_dir_config *conf, cha… in php_set_logger_handler_code() argument
1075 return php_set_dir_handler(conf, arg1, AP_LOGGING, AP_HANDLER_TYPE_METHOD); in php_set_logger_handler_code()
1082 static CONST_PREFIX char *php_set_post_read_handler(cmd_parms *cmd, php_per_dir_config *conf, char … in php_set_post_read_handler() argument
1084 return php_set_dir_handler(conf, arg1, AP_POST_READ, AP_HANDLER_TYPE_FILE); in php_set_post_read_handler()
1086 static CONST_PREFIX char *php_set_post_read_handler_code(cmd_parms *cmd, php_per_dir_config *conf, … in php_set_post_read_handler_code() argument
1088 return php_set_dir_handler(conf, arg1, AP_POST_READ, AP_HANDLER_TYPE_METHOD); in php_set_post_read_handler_code()
1105 static CONST_PREFIX char *php_set_response_handler(cmd_parms *cmd, php_per_dir_config *conf, char *… in php_set_response_handler() argument
1107 return php_set_dir_handler(conf, arg1, AP_RESPONSE, AP_HANDLER_TYPE_FILE); in php_set_response_handler()
1109 static CONST_PREFIX char *php_set_response_handler_code(cmd_parms *cmd, php_per_dir_config *conf, c… in php_set_response_handler_code() argument
1111 return php_set_dir_handler(conf, arg1, AP_RESPONSE, AP_HANDLER_TYPE_METHOD); in php_set_response_handler_code()
1117 static CONST_PREFIX char *php_apache_value_handler(cmd_parms *cmd, php_per_dir_config *conf, char *… in php_apache_value_handler() argument
1119 return php_apache_value_handler_ex(cmd, conf->ini_settings, arg1, arg2, PHP_INI_PERDIR); in php_apache_value_handler()
1125 static CONST_PREFIX char *php_apache_admin_value_handler(cmd_parms *cmd, php_per_dir_config *conf, … in php_apache_admin_value_handler() argument
1127 return php_apache_value_handler_ex(cmd, conf->ini_settings, arg1, arg2, PHP_INI_SYSTEM); in php_apache_admin_value_handler()
1133 static CONST_PREFIX char *php_apache_flag_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, c… in php_apache_flag_handler_ex() argument
1144 return php_apache_value_handler_ex(cmd, conf, arg1, bool_val, mode); in php_apache_flag_handler_ex()
1150 static CONST_PREFIX char *php_apache_flag_handler(cmd_parms *cmd, php_per_dir_config *conf, char *a… in php_apache_flag_handler() argument
1152 return php_apache_flag_handler_ex(cmd, conf->ini_settings, arg1, arg2, PHP_INI_PERDIR); in php_apache_flag_handler()
1158 static CONST_PREFIX char *php_apache_admin_flag_handler(cmd_parms *cmd, php_per_dir_config *conf, c… in php_apache_admin_flag_handler() argument
1160 return php_apache_flag_handler_ex(cmd, conf->ini_settings, arg1, arg2, PHP_INI_SYSTEM); in php_apache_admin_flag_handler()
1166 static CONST_PREFIX char *php_apache_phpini_set(cmd_parms *cmd, HashTable *conf, char *arg) in php_apache_phpini_set() argument
1180 php_per_dir_config *conf; in php_xbithack_handler() local
1187 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_xbithack_handler()
1188 if (conf) { in php_xbithack_handler()
1189 …zend_hash_apply((HashTable *) conf->ini_settings, (apply_func_t) php_apache_alter_ini_entries TSRM… in php_xbithack_handler()
1264 php_per_dir_config *conf; in php_run_hook() local
1269 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_run_hook()
1270 if (conf) in php_run_hook()
1271 …zend_hash_apply((HashTable *)conf->ini_settings, (apply_func_t) php_apache_alter_ini_entries TSRML… in php_run_hook()
1298 php_per_server_config *conf; in php_uri_translation() local
1301 conf = (php_per_server_config *) get_module_config(r->server->module_config, &php5_module); in php_uri_translation()
1302 return sapi_stack_apply_with_argument_stop_if_equals(&conf->uri_handlers, in php_uri_translation()
1309 php_per_dir_config *conf; in php_header_hook() local
1312 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_header_hook()
1313 return sapi_stack_apply_with_argument_stop_if_http_error(&conf->headers_handlers, in php_header_hook()
1320 php_per_dir_config *conf; in php_auth_hook() local
1323 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_auth_hook()
1324 return sapi_stack_apply_with_argument_stop_if_equals(&conf->auth_handlers, in php_auth_hook()
1331 php_per_dir_config *conf; in php_access_hook() local
1335 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_access_hook()
1336 status = sapi_stack_apply_with_argument_stop_if_http_error(&conf->access_handlers, in php_access_hook()
1345 php_per_dir_config *conf; in php_type_hook() local
1348 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_type_hook()
1349 return sapi_stack_apply_with_argument_stop_if_equals(&conf->type_handlers, in php_type_hook()
1357 php_per_dir_config *conf; in php_fixup_hook() local
1360 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_fixup_hook()
1361 return sapi_stack_apply_with_argument_stop_if_http_error(&conf->fixup_handlers, in php_fixup_hook()
1369 php_per_dir_config *conf; in php_logger_hook() local
1372 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_logger_hook()
1373 return sapi_stack_apply_with_argument_stop_if_http_error(&conf->logger_handlers, in php_logger_hook()
1381 php_per_dir_config *conf; in php_post_read_hook() local
1389 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_post_read_hook()
1390 return sapi_stack_apply_with_argument_stop_if_http_error(&conf->post_read_handlers, in php_post_read_hook()
1397 php_per_dir_config *conf; in php_response_handler() local
1400 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_response_handler()
1401 …return sapi_stack_apply_with_argument_all(&conf->response_handlers, ZEND_STACK_APPLY_BOTTOMUP, (in… in php_response_handler()