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