2 +----------------------------------------------------------------------+
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1997-2013 The PHP Group |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Author: Rasmus Lerdorf <rasmus@php.net> |
16 +----------------------------------------------------------------------+
23 #if !defined(WIN32) && !defined(WINNT)
24 #ifndef MODULE_VAR_EXPORT
25 #define MODULE_VAR_EXPORT
37 zend_bool apache_config_loaded
;
38 zend_bool headers_sent
;
39 } php_apache_info_struct
;
41 typedef struct _php_handler
{
47 #define AP_HANDLER_TYPE_FILE 0
48 #define AP_HANDLER_TYPE_METHOD 1
50 extern zend_module_entry apache_module_entry
;
53 extern int php_apache_info_id
;
54 #define AP(v) TSRMG(php_apache_info_id, php_apache_info_struct *, v)
56 extern php_apache_info_struct php_apache_info
;
57 #define AP(v) (php_apache_info.v)
60 /* defines for the various stages of the apache request */
61 #define AP_WAITING_FOR_REQUEST 0
62 #define AP_POST_READ 1
63 #define AP_URI_TRANS 2
64 #define AP_HEADER_PARSE 3
65 #define AP_ACCESS_CONTROL 4
66 #define AP_AUTHENTICATION 5
67 #define AP_AUTHORIZATION 6
68 #define AP_TYPE_CHECKING 7
75 /* fix for gcc4 visibility patch */
77 # undef MODULE_VAR_EXPORT
78 # define MODULE_VAR_EXPORT PHPAPI
81 #endif /* MOD_PHP5_H */