mod_php5.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. long setup_env;
  32. long current_hook;
  33. zend_bool in_request;
  34. zend_bool apache_config_loaded;
  35. zend_bool headers_sent;
  36. } php_apache_info_struct;
  37. typedef struct _php_handler {
  38. long type;
  39. long stage;
  40. char *name;
  41. } php_handler;
  42. #define AP_HANDLER_TYPE_FILE 0
  43. #define AP_HANDLER_TYPE_METHOD 1
  44. extern zend_module_entry apache_module_entry;
  45. #ifdef ZTS
  46. extern int php_apache_info_id;
  47. #define AP(v) TSRMG(php_apache_info_id, php_apache_info_struct *, v)
  48. #else
  49. extern php_apache_info_struct php_apache_info;
  50. #define AP(v) (php_apache_info.v)
  51. #endif
  52. /* defines for the various stages of the apache request */
  53. #define AP_WAITING_FOR_REQUEST 0
  54. #define AP_POST_READ 1
  55. #define AP_URI_TRANS 2
  56. #define AP_HEADER_PARSE 3
  57. #define AP_ACCESS_CONTROL 4
  58. #define AP_AUTHENTICATION 5
  59. #define AP_AUTHORIZATION 6
  60. #define AP_TYPE_CHECKING 7
  61. #define AP_FIXUP 8
  62. #define AP_RESPONSE 9
  63. #define AP_LOGGING 10
  64. #define AP_CLEANUP 11
  65. /* fix for gcc4 visibility patch */
  66. #ifndef PHP_WIN32
  67. # undef MODULE_VAR_EXPORT
  68. # define MODULE_VAR_EXPORT PHPAPI
  69. #endif
  70. #endif /* MOD_PHP5_H */
  71. /*
  72. * Local variables:
  73. * tab-width: 4
  74. * c-basic-offset: 4
  75. * End:
  76. */