123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef PHP_APACHE_H
- #define PHP_APACHE_H
- #include "httpd.h"
- #include "http_config.h"
- #include "http_core.h"
- #include "http_log.h"
- #include "php.h"
- #include "main/php_streams.h"
- #ifdef APLOG_USE_MODULE
- APLOG_USE_MODULE(php);
- #endif
- extern module AP_MODULE_DECLARE_DATA php_module;
- extern char *apache2_php_ini_path_override;
- typedef struct php_struct {
- int state;
- request_rec *r;
- apr_bucket_brigade *brigade;
-
- zend_stat_t finfo;
-
- int request_processed;
-
- char *content_type;
- } php_struct;
- void *merge_php_config(apr_pool_t *p, void *base_conf, void *new_conf);
- void *create_php_config(apr_pool_t *p, char *dummy);
- char *get_php_config(void *conf, char *name, size_t name_len);
- void apply_config(void *);
- extern const command_rec php_dir_cmds[];
- void php_ap2_register_hook(apr_pool_t *p);
- #define APR_ARRAY_FOREACH_OPEN(arr, key, val) \
- { \
- apr_table_entry_t *elts; \
- int i; \
- elts = (apr_table_entry_t *) arr->elts; \
- for (i = 0; i < arr->nelts; i++) { \
- key = elts[i].key; \
- val = elts[i].val;
- #define APR_ARRAY_FOREACH_CLOSE() }}
- typedef struct {
- bool engine;
- bool xbithack;
- bool last_modified;
- } php_apache2_info_struct;
- extern zend_module_entry apache2_module_entry;
- #ifdef ZTS
- extern int php_apache2_info_id;
- #define AP2(v) ZEND_TSRMG(php_apache2_info_id, php_apache2_info_struct *, v)
- ZEND_TSRMLS_CACHE_EXTERN()
- #else
- extern php_apache2_info_struct php_apache2_info;
- #define AP2(v) (php_apache2_info.v)
- #endif
- #ifndef PHP_WIN32
- # undef AP_MODULE_DECLARE_DATA
- # define AP_MODULE_DECLARE_DATA PHPAPI
- #endif
- #endif
|