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