Back to index

php5  5.3.10
mod_php5.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Author: Rasmus Lerdorf <rasmus@php.net>                              |
00016    +----------------------------------------------------------------------+
00017  */
00018 /* $Id: mod_php5.h 321634 2012-01-01 13:15:04Z felipe $ */
00019 
00020 #ifndef MOD_PHP5_H
00021 #define MOD_PHP5_H
00022 
00023 #if !defined(WIN32) && !defined(WINNT)
00024 #ifndef MODULE_VAR_EXPORT
00025 #define MODULE_VAR_EXPORT
00026 #endif
00027 #endif
00028 
00029 typedef struct {
00030        long engine;
00031        long last_modified;
00032        long xbithack;
00033        long terminate_child;
00034        long setup_env;
00035        long current_hook;
00036        zend_bool in_request;
00037        zend_bool apache_config_loaded;
00038        zend_bool headers_sent;
00039 } php_apache_info_struct;
00040 
00041 typedef struct _php_handler {
00042     long type;
00043     long stage;
00044     char *name;
00045 } php_handler;
00046 
00047 #define AP_HANDLER_TYPE_FILE 0
00048 #define AP_HANDLER_TYPE_METHOD 1
00049 
00050 extern zend_module_entry apache_module_entry;
00051 
00052 #ifdef ZTS
00053 extern int php_apache_info_id;
00054 #define AP(v) TSRMG(php_apache_info_id, php_apache_info_struct *, v)
00055 #else
00056 extern php_apache_info_struct php_apache_info;
00057 #define AP(v) (php_apache_info.v)
00058 #endif
00059 
00060 /* defines for the various stages of the apache request */
00061 #define AP_WAITING_FOR_REQUEST 0
00062 #define AP_POST_READ 1
00063 #define AP_URI_TRANS 2
00064 #define AP_HEADER_PARSE 3
00065 #define AP_ACCESS_CONTROL 4
00066 #define AP_AUTHENTICATION 5
00067 #define AP_AUTHORIZATION 6
00068 #define AP_TYPE_CHECKING 7
00069 #define AP_FIXUP 8
00070 #define AP_RESPONSE 9
00071 #define AP_LOGGING 10
00072 #define AP_CLEANUP 11
00073 
00074 
00075 /* fix for gcc4 visibility patch */
00076 #ifndef PHP_WIN32
00077 # undef MODULE_VAR_EXPORT
00078 # define MODULE_VAR_EXPORT PHPAPI
00079 #endif
00080 
00081 #endif                                           /* MOD_PHP5_H */
00082 
00083 /*
00084  * Local variables:
00085  * tab-width: 4
00086  * c-basic-offset: 4
00087  * End:
00088  */