mod_php.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Sascha Schumann <sascha@schumann.cx> |
  14. | Parts based on Apache 1.3 SAPI module by |
  15. | Rasmus Lerdorf and Zeev Suraski |
  16. +----------------------------------------------------------------------+
  17. */
  18. #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
  19. #include "php.h"
  20. #ifdef strcasecmp
  21. # undef strcasecmp
  22. #endif
  23. #ifdef strncasecmp
  24. # undef strncasecmp
  25. #endif
  26. #include "php_apache.h"
  27. AP_MODULE_DECLARE_DATA module php_module = {
  28. STANDARD20_MODULE_STUFF,
  29. create_php_config, /* create per-directory config structure */
  30. merge_php_config, /* merge per-directory config structures */
  31. NULL, /* create per-server config structure */
  32. NULL, /* merge per-server config structures */
  33. php_dir_cmds, /* command apr_table_t */
  34. php_ap2_register_hook /* register hooks */
  35. };