|
58 | 58 | #endif
|
59 | 59 |
|
60 | 60 | PHPAPI int apache_php_module_main(request_rec *r, int fd, int display_source_mode SLS_DC);
|
| 61 | +void php_save_umask(void); |
| 62 | +void php_restore_umask(void); |
| 63 | +int sapi_apache_read_post(char *buffer, uint count_bytes SLS_DC); |
| 64 | +char *sapi_apache_read_cookies(SLS_D); |
| 65 | +int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers SLS_DC); |
| 66 | +int sapi_apache_send_headers(sapi_headers_struct *sapi_headers SLS_DC); |
| 67 | +int send_php(request_rec *r, int display_source_mode, char *filename); |
| 68 | +int send_parsed_php(request_rec * r); |
| 69 | +int send_parsed_php_source(request_rec * r); |
| 70 | +int php_xbithack_handler(request_rec * r); |
| 71 | +void php_init_handler(server_rec *s, pool *p); |
| 72 | + |
| 73 | +#if MODULE_MAGIC_NUMBER > 19961007 |
| 74 | +#define CONST_PREFIX const |
| 75 | +#else |
| 76 | +#define CONST_PREFIX |
| 77 | +#endif |
| 78 | +CONST_PREFIX char *php_apache_value_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2, int mode); |
| 79 | +CONST_PREFIX char *php_apache_value_handler(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2); |
| 80 | +CONST_PREFIX char *php_apache_admin_value_handler(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2); |
| 81 | +CONST_PREFIX char *php_apache_flag_handler(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2); |
| 82 | +CONST_PREFIX char *php_apache_flag_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2, int mode); |
| 83 | +CONST_PREFIX char *php_apache_admin_flag_handler(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2); |
61 | 84 |
|
62 | 85 | /* ### these should be defined in mod_php4.h or somewhere else */
|
63 | 86 | #define USE_PATH 1
|
@@ -94,7 +117,7 @@ php_apache_info_struct php_apache_info; /* active config */
|
94 | 117 |
|
95 | 118 | /* some systems are missing these from their header files */
|
96 | 119 |
|
97 |
| -void php_save_umask() |
| 120 | +void php_save_umask(void) |
98 | 121 | {
|
99 | 122 | saved_umask = umask(077);
|
100 | 123 | umask(saved_umask);
|
@@ -208,7 +231,7 @@ sapi_module_struct sapi_module = {
|
208 | 231 | };
|
209 | 232 |
|
210 | 233 |
|
211 |
| -void php_restore_umask() |
| 234 | +void php_restore_umask(void) |
212 | 235 | {
|
213 | 236 | umask(saved_umask);
|
214 | 237 | }
|
@@ -399,12 +422,6 @@ static void *php_merge_dir(pool *p, void *basev, void *addv)
|
399 | 422 | }
|
400 | 423 |
|
401 | 424 |
|
402 |
| -#if MODULE_MAGIC_NUMBER > 19961007 |
403 |
| -#define CONST_PREFIX const |
404 |
| -#else |
405 |
| -#define CONST_PREFIX |
406 |
| -#endif |
407 |
| - |
408 | 425 | CONST_PREFIX char *php_apache_value_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2, int mode)
|
409 | 426 | {
|
410 | 427 | php_per_dir_entry per_dir_entry;
|
@@ -498,7 +515,7 @@ static void apache_php_module_shutdown_wrapper(void)
|
498 | 515 |
|
499 | 516 | void php_init_handler(server_rec *s, pool *p)
|
500 | 517 | {
|
501 |
| - register_cleanup(p, NULL, (void (*)(void *))apache_php_module_shutdown_wrapper, php_module_shutdown_for_exec); |
| 518 | + register_cleanup(p, NULL, (void (*)(void *))apache_php_module_shutdown_wrapper, (void (*)(void *))php_module_shutdown_for_exec); |
502 | 519 | if (!apache_php_initialized) {
|
503 | 520 | sapi_startup(&sapi_module);
|
504 | 521 | php_module_startup(&sapi_module);
|
|
0 commit comments