1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2016 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 +----------------------------------------------------------------------+ 17 */ 18 /* $Id$ */ 19 20 #ifndef MOD_PHP5_H 21 #define MOD_PHP5_H 22 23 #if !defined(WIN32) && !defined(WINNT) 24 #ifndef MODULE_VAR_EXPORT 25 #define MODULE_VAR_EXPORT 26 #endif 27 #endif 28 29 typedef struct { 30 long engine; 31 long last_modified; 32 long xbithack; 33 long terminate_child; 34 zend_bool in_request; 35 } php_apache_info_struct; 36 37 extern zend_module_entry apache_module_entry; 38 39 #ifdef ZTS 40 extern int php_apache_info_id; 41 #define AP(v) TSRMG(php_apache_info_id, php_apache_info_struct *, v) 42 #else 43 extern php_apache_info_struct php_apache_info; 44 #define AP(v) (php_apache_info.v) 45 #endif 46 47 /* fix for gcc4 visibility patch */ 48 #ifndef PHP_WIN32 49 # undef MODULE_VAR_EXPORT 50 # define MODULE_VAR_EXPORT PHPAPI 51 #endif 52 53 #endif /* MOD_PHP5_H */ 54 55 /* 56 * Local variables: 57 * tab-width: 4 58 * c-basic-offset: 4 59 * End: 60 */ 61