1
2
3
4
5 #ifndef FPM_PHP_H
6 #define FPM_PHP_H 1
7
8 #include <TSRM.h>
9
10 #include "php.h"
11 #include "build-defs.h"
12 #include "fpm/fpm_conf.h"
13
14 #define FPM_PHP_INI_TO_EXPAND \
15 { \
16 "error_log", \
17 "extension_dir", \
18 "mime_magic.magicfile", \
19 "sendmail_path", \
20 "session.cookie_path", \
21 "session_pgsql.sem_file_name", \
22 "soap.wsdl_cache_dir", \
23 "uploadprogress.file.filename_template", \
24 "xdebug.output_dir", \
25 "xdebug.profiler_output_dir", \
26 "xdebug.trace_output_dir", \
27 "xmms.path", \
28 "axis2.client_home", \
29 "blenc.key_file", \
30 "coin_acceptor.device", \
31 NULL \
32 }
33
34 struct fpm_worker_pool_s;
35
36 int fpm_php_init_child(struct fpm_worker_pool_s *wp);
37 char *fpm_php_script_filename(void);
38 char *fpm_php_request_uri(void);
39 char *fpm_php_request_method(void);
40 char *fpm_php_query_string(void);
41 char *fpm_php_auth_user(void);
42 size_t fpm_php_content_length(void);
43 void fpm_php_soft_quit();
44 int fpm_php_init_main();
45 int fpm_php_apply_defines_ex(struct key_value_s *kv, int mode);
46 int fpm_php_limit_extensions(char *path);
47 char* fpm_php_get_string_from_table(zend_string *table, char *key);
48
49 #endif
50