You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.2 KiB

27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
27 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP version 4.0 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 2.0 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available at through the world-wide-web at |
  10. | http://www.php.net/license/2_0.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. | Authors: Andi Gutmans <andi@zend.com> |
  16. | Zeev Suraski <zeev@zend.com> |
  17. +----------------------------------------------------------------------+
  18. */
  19. /* $Id$ */
  20. #ifndef _MAIN_H
  21. #define _MAIN_H
  22. #include "zend_globals.h"
  23. #include "php_globals.h"
  24. #include "SAPI.h"
  25. PHPAPI int php_request_startup(CLS_D ELS_DC PLS_DC SLS_DC);
  26. PHPAPI void php_request_shutdown(void *dummy);
  27. PHPAPI void php_request_shutdown_for_exec(void *dummy);
  28. PHPAPI int php_module_startup(sapi_module_struct *sf);
  29. PHPAPI void php_module_shutdown(void);
  30. PHPAPI void php_module_shutdown_for_exec(void);
  31. PHPAPI int php_module_shutdown_wrapper(sapi_module_struct *sapi_globals);
  32. PHPAPI int php_startup_extensions(zend_module_entry **ptr, int count);
  33. PHPAPI int php_global_startup_extensions(zend_module_entry **ptr, int count);
  34. PHPAPI int php_global_shutdown_extensions(zend_module_entry **ptr, int count);
  35. PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_DC);
  36. extern void php_call_shutdown_functions(void);
  37. /* configuration module */
  38. extern int php_init_config(void);
  39. extern int php_shutdown_config(void);
  40. /* environment module */
  41. extern int php_init_environ(void);
  42. extern int php_shutdown_environ(void);
  43. #endif