mod_php5.h 1.9 KB

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