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 "mime_magic.magicfile", \ 17 "sendmail_path", \ 18 "session.cookie_path", \ 19 "session_pgsql.sem_file_name", \ 20 "soap.wsdl_cache_dir", \ 21 "uploadprogress.file.filename_template", \ 22 "xdebug.output_dir", \ 23 "xdebug.profiler_output_dir", \ 24 "xdebug.trace_output_dir", \ 25 "xmms.path", \ 26 "axis2.client_home", \ 27 "blenc.key_file", \ 28 "coin_acceptor.device", \ 29 NULL \ 30 } 31 32 struct fpm_worker_pool_s; 33 34 int fpm_php_init_child(struct fpm_worker_pool_s *wp); 35 char *fpm_php_script_filename(void); 36 char *fpm_php_request_uri(void); 37 char *fpm_php_request_method(void); 38 char *fpm_php_query_string(void); 39 char *fpm_php_auth_user(void); 40 size_t fpm_php_content_length(void); 41 void fpm_php_soft_quit(void); 42 int fpm_php_init_main(void); 43 int fpm_php_apply_defines_ex(struct key_value_s *kv, int mode); 44 int fpm_php_limit_extensions(char *path); 45 char* fpm_php_get_string_from_table(zend_string *table, char *key); 46 47 #endif 48