xref: /PHP-5.6/sapi/fpm/fpm/fpm_php.h (revision 4fc989fb)
1 
2 	/* $Id: fpm_php.h,v 1.10.2.1 2008/11/15 00:57:24 anight Exp $ */
3 	/* (c) 2007,2008 Andrei Nigmatulin */
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" /* for PHP_ defines */
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(TSRMLS_D);
38 char *fpm_php_request_uri(TSRMLS_D);
39 char *fpm_php_request_method(TSRMLS_D);
40 char *fpm_php_query_string(TSRMLS_D);
41 char *fpm_php_auth_user(TSRMLS_D);
42 size_t fpm_php_content_length(TSRMLS_D);
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(char *table, char *key TSRMLS_DC);
48 
49 #endif
50 
51