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…
815 static void php_destroy_per_server_info(php_per_server_config *conf) in php_destroy_per_server_info() argument
817 php_handler_stack_destroy(&conf->requires); in php_destroy_per_server_info()
818 php_handler_stack_destroy(&conf->uri_handlers); in php_destroy_per_server_info()
824 static void php_destroy_per_dir_info(php_per_dir_config *conf) in php_destroy_per_dir_info() argument
826 zend_hash_destroy(conf->ini_settings); in php_destroy_per_dir_info()
827 php_handler_stack_destroy(&conf->response_handlers); in php_destroy_per_dir_info()
828 php_handler_stack_destroy(&conf->auth_handlers); in php_destroy_per_dir_info()
829 php_handler_stack_destroy(&conf->access_handlers); in php_destroy_per_dir_info()
830 php_handler_stack_destroy(&conf->type_handlers); in php_destroy_per_dir_info()
831 php_handler_stack_destroy(&conf->fixup_handlers); in php_destroy_per_dir_info()
832 php_handler_stack_destroy(&conf->logger_handlers); in php_destroy_per_dir_info()
833 php_handler_stack_destroy(&conf->post_read_handlers); in php_destroy_per_dir_info()
834 php_handler_stack_destroy(&conf->headers_handlers); in php_destroy_per_dir_info()
835 free(conf->ini_settings); in php_destroy_per_dir_info()
843 php_per_server_config *conf; in php_create_server() local
844 conf = (php_per_server_config *) malloc(sizeof(php_per_server_config)); in php_create_server()
845 …register_cleanup(p, (void *) conf, (void (*)(void *)) php_destroy_per_server_info, (void (*)(void … in php_create_server()
847 sapi_stack_init_ex(&conf->requires, 1); in php_create_server()
848 sapi_stack_init_ex(&conf->uri_handlers, 1); in php_create_server()
849 return conf; in php_create_server()
859 php_per_dir_config *conf; in php_create_dir() local
860 conf = (php_per_dir_config *) malloc(sizeof(php_per_dir_config)); in php_create_dir()
861 conf->ini_settings = (HashTable *) malloc(sizeof(HashTable)); in php_create_dir()
862 zend_hash_init_ex(conf->ini_settings, 5, NULL, (void (*)(void *)) destroy_per_dir_entry, 1, 0); in php_create_dir()
863 sapi_stack_init_ex(&conf->response_handlers, 1); in php_create_dir()
864 sapi_stack_init_ex(&conf->headers_handlers, 1); in php_create_dir()
865 sapi_stack_init_ex(&conf->auth_handlers, 1); in php_create_dir()
866 sapi_stack_init_ex(&conf->access_handlers, 1); in php_create_dir()
867 sapi_stack_init_ex(&conf->type_handlers, 1); in php_create_dir()
868 sapi_stack_init_ex(&conf->fixup_handlers, 1); in php_create_dir()
869 sapi_stack_init_ex(&conf->logger_handlers, 1); in php_create_dir()
870 sapi_stack_init_ex(&conf->post_read_handlers, 1); in php_create_dir()
871 …register_cleanup(p, (void *) conf, (void (*)(void *)) php_destroy_per_dir_info, (void (*)(void *))… in php_create_dir()
873 return conf; in php_create_dir()
900 static CONST_PREFIX char *php_apache_value_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, … in php_apache_value_handler_ex() argument
929 …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()
936 php_per_server_config *conf; in php_set_server_handler() local
942 conf = get_module_config(s->module_config, &php5_module); in php_set_server_handler()
945 sapi_stack_push(&conf->uri_handlers, handler); in php_set_server_handler()
948 sapi_stack_push(&conf->requires, handler); in php_set_server_handler()
954 static CONST_PREFIX char *php_set_dir_handler(php_per_dir_config *conf, char *arg1, long handler_st… in php_set_dir_handler() argument
963 sapi_stack_push(&conf->post_read_handlers, handler); in php_set_dir_handler()
966 sapi_stack_push(&conf->headers_handlers, handler); in php_set_dir_handler()
969 sapi_stack_push(&conf->access_handlers, handler); in php_set_dir_handler()
972 sapi_stack_push(&conf->auth_handlers, handler); in php_set_dir_handler()
977 sapi_stack_push(&conf->type_handlers, handler); in php_set_dir_handler()
980 sapi_stack_push(&conf->fixup_handlers, handler); in php_set_dir_handler()
983 sapi_stack_push(&conf->response_handlers, handler); in php_set_dir_handler()
986 sapi_stack_push(&conf->logger_handlers, handler); in php_set_dir_handler()
1011 static CONST_PREFIX char *php_set_header_handler(cmd_parms *cmd, php_per_dir_config *conf, char *ar… in php_set_header_handler() argument
1013 return php_set_dir_handler(conf, arg1, AP_HEADER_PARSE, AP_HANDLER_TYPE_FILE); in php_set_header_handler()
1015 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
1017 return php_set_dir_handler(conf, arg1, AP_HEADER_PARSE, AP_HANDLER_TYPE_METHOD); in php_set_header_handler_code()
1023 static CONST_PREFIX char *php_set_auth_handler(cmd_parms *cmd, php_per_dir_config *conf, char *arg1) in php_set_auth_handler() argument
1025 return php_set_dir_handler(conf, arg1, AP_AUTHENTICATION, AP_HANDLER_TYPE_FILE); in php_set_auth_handler()
1027 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
1029 return php_set_dir_handler(conf, arg1, AP_AUTHENTICATION, AP_HANDLER_TYPE_METHOD); in php_set_auth_handler_code()
1036 static CONST_PREFIX char *php_set_access_handler(cmd_parms *cmd, php_per_dir_config *conf, char *ar… in php_set_access_handler() argument
1038 return php_set_dir_handler(conf, arg1, AP_ACCESS_CONTROL, AP_HANDLER_TYPE_FILE); in php_set_access_handler()
1040 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
1042 return php_set_dir_handler(conf, arg1, AP_ACCESS_CONTROL, AP_HANDLER_TYPE_METHOD); in php_set_access_handler_code()
1049 static CONST_PREFIX char *php_set_type_handler(cmd_parms *cmd, php_per_dir_config *conf, char *arg1) in php_set_type_handler() argument
1051 return php_set_dir_handler(conf, arg1, AP_TYPE_CHECKING, AP_HANDLER_TYPE_FILE); in php_set_type_handler()
1053 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
1055 return php_set_dir_handler(conf, arg1, AP_TYPE_CHECKING, AP_HANDLER_TYPE_METHOD); in php_set_type_handler_code()
1062 static CONST_PREFIX char *php_set_fixup_handler(cmd_parms *cmd, php_per_dir_config *conf, char *arg… in php_set_fixup_handler() argument
1064 return php_set_dir_handler(conf, arg1, AP_FIXUP, AP_HANDLER_TYPE_FILE); in php_set_fixup_handler()
1066 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
1068 return php_set_dir_handler(conf, arg1, AP_FIXUP, AP_HANDLER_TYPE_METHOD); in php_set_fixup_handler_code()
1074 static CONST_PREFIX char *php_set_logger_handler(cmd_parms *cmd, php_per_dir_config *conf, char *ar… in php_set_logger_handler() argument
1076 return php_set_dir_handler(conf, arg1, AP_LOGGING, AP_HANDLER_TYPE_FILE); in php_set_logger_handler()
1078 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
1080 return php_set_dir_handler(conf, arg1, AP_LOGGING, AP_HANDLER_TYPE_METHOD); in php_set_logger_handler_code()
1087 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
1089 return php_set_dir_handler(conf, arg1, AP_POST_READ, AP_HANDLER_TYPE_FILE); in php_set_post_read_handler()
1091 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
1093 return php_set_dir_handler(conf, arg1, AP_POST_READ, AP_HANDLER_TYPE_METHOD); in php_set_post_read_handler_code()
1110 static CONST_PREFIX char *php_set_response_handler(cmd_parms *cmd, php_per_dir_config *conf, char *… in php_set_response_handler() argument
1112 return php_set_dir_handler(conf, arg1, AP_RESPONSE, AP_HANDLER_TYPE_FILE); in php_set_response_handler()
1114 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
1116 return php_set_dir_handler(conf, arg1, AP_RESPONSE, AP_HANDLER_TYPE_METHOD); in php_set_response_handler_code()
1122 static CONST_PREFIX char *php_apache_value_handler(cmd_parms *cmd, php_per_dir_config *conf, char *… in php_apache_value_handler() argument
1124 return php_apache_value_handler_ex(cmd, conf->ini_settings, arg1, arg2, PHP_INI_PERDIR); in php_apache_value_handler()
1130 static CONST_PREFIX char *php_apache_admin_value_handler(cmd_parms *cmd, php_per_dir_config *conf, … in php_apache_admin_value_handler() argument
1132 return php_apache_value_handler_ex(cmd, conf->ini_settings, arg1, arg2, PHP_INI_SYSTEM); in php_apache_admin_value_handler()
1138 static CONST_PREFIX char *php_apache_flag_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, c… in php_apache_flag_handler_ex() argument
1149 return php_apache_value_handler_ex(cmd, conf, arg1, bool_val, mode); in php_apache_flag_handler_ex()
1155 static CONST_PREFIX char *php_apache_flag_handler(cmd_parms *cmd, php_per_dir_config *conf, char *a… in php_apache_flag_handler() argument
1157 return php_apache_flag_handler_ex(cmd, conf->ini_settings, arg1, arg2, PHP_INI_PERDIR); in php_apache_flag_handler()
1163 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
1165 return php_apache_flag_handler_ex(cmd, conf->ini_settings, arg1, arg2, PHP_INI_SYSTEM); in php_apache_admin_flag_handler()
1171 static CONST_PREFIX char *php_apache_phpini_set(cmd_parms *cmd, HashTable *conf, char *arg) in php_apache_phpini_set() argument
1185 php_per_dir_config *conf; in php_xbithack_handler() local
1192 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_xbithack_handler()
1193 if (conf) { in php_xbithack_handler()
1194 …zend_hash_apply((HashTable *) conf->ini_settings, (apply_func_t) php_apache_alter_ini_entries TSRM… in php_xbithack_handler()
1269 php_per_dir_config *conf; in php_run_hook() local
1274 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_run_hook()
1275 if (conf) in php_run_hook()
1276 …zend_hash_apply((HashTable *)conf->ini_settings, (apply_func_t) php_apache_alter_ini_entries TSRML… in php_run_hook()
1303 php_per_server_config *conf; in php_uri_translation() local
1306 conf = (php_per_server_config *) get_module_config(r->server->module_config, &php5_module); in php_uri_translation()
1307 return sapi_stack_apply_with_argument_stop_if_equals(&conf->uri_handlers, in php_uri_translation()
1314 php_per_dir_config *conf; in php_header_hook() local
1317 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_header_hook()
1318 return sapi_stack_apply_with_argument_stop_if_http_error(&conf->headers_handlers, in php_header_hook()
1325 php_per_dir_config *conf; in php_auth_hook() local
1328 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_auth_hook()
1329 return sapi_stack_apply_with_argument_stop_if_equals(&conf->auth_handlers, in php_auth_hook()
1336 php_per_dir_config *conf; in php_access_hook() local
1340 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_access_hook()
1341 status = sapi_stack_apply_with_argument_stop_if_http_error(&conf->access_handlers, in php_access_hook()
1350 php_per_dir_config *conf; in php_type_hook() local
1353 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_type_hook()
1354 return sapi_stack_apply_with_argument_stop_if_equals(&conf->type_handlers, in php_type_hook()
1362 php_per_dir_config *conf; in php_fixup_hook() local
1365 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_fixup_hook()
1366 return sapi_stack_apply_with_argument_stop_if_http_error(&conf->fixup_handlers, in php_fixup_hook()
1374 php_per_dir_config *conf; in php_logger_hook() local
1377 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_logger_hook()
1378 return sapi_stack_apply_with_argument_stop_if_http_error(&conf->logger_handlers, in php_logger_hook()
1386 php_per_dir_config *conf; in php_post_read_hook() local
1394 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_post_read_hook()
1395 return sapi_stack_apply_with_argument_stop_if_http_error(&conf->post_read_handlers, in php_post_read_hook()
1402 php_per_dir_config *conf; in php_response_handler() local
1405 conf = (php_per_dir_config *) get_module_config(r->per_dir_config, &php5_module); in php_response_handler()
1406 …return sapi_stack_apply_with_argument_all(&conf->response_handlers, ZEND_STACK_APPLY_BOTTOMUP, (in… in php_response_handler()