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.

73 lines
3.0 KiB

28 years ago
28 years ago
28 years ago
28 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP HTML Embedded Scripting Language Version 3.0 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997,1998 PHP Development Team (See Credits file) |
  6. +----------------------------------------------------------------------+
  7. | This program is free software; you can redistribute it and/or modify |
  8. | it under the terms of one of the following licenses: |
  9. | |
  10. | A) the GNU General Public License as published by the Free Software |
  11. | Foundation; either version 2 of the License, or (at your option) |
  12. | any later version. |
  13. | |
  14. | B) the PHP License as published by the PHP Development Team and |
  15. | included in the distribution in the file: LICENSE |
  16. | |
  17. | This program is distributed in the hope that it will be useful, |
  18. | but WITHOUT ANY WARRANTY; without even the implied warranty of |
  19. | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
  20. | GNU General Public License for more details. |
  21. | |
  22. | You should have received a copy of both licenses referred to here. |
  23. | If you did not, or have any questions about PHP licensing, please |
  24. | contact core@php.net. |
  25. +----------------------------------------------------------------------+
  26. | Authors: Andi Gutmans <andi@zend.com> |
  27. | Zeev Suraski <zeev@zend.com> |
  28. +----------------------------------------------------------------------+
  29. */
  30. /* $Id$ */
  31. #ifndef _MAIN_H
  32. #define _MAIN_H
  33. #include "zend_globals.h"
  34. #include "php_globals.h"
  35. #define INIT_ENVIRONMENT 0x80
  36. #define INIT_REQUEST_INFO 0x400
  37. #define INIT_FUNCTIONS 0x800
  38. #define INIT_SCANNER 0x1000
  39. #define INIT_CONFIG 0x10000
  40. #define INIT_VARIABLE_UNASSIGN_STACK 0x20000
  41. #define INIT_WINSOCK 0x100000
  42. #define INIT_CLASS_TABLE 0x400000
  43. int php3_request_startup(CLS_D ELS_DC PLS_DC);
  44. extern void php3_request_shutdown(void *dummy INLINE_TLS);
  45. extern void php3_request_shutdown_for_exec(void *dummy);
  46. extern int php3_module_startup();
  47. extern void php3_module_shutdown();
  48. extern void php3_module_shutdown_for_exec(void);
  49. #ifndef THREAD_SAFE
  50. extern unsigned char header_is_being_sent;
  51. extern int initialized;
  52. #endif
  53. extern void php3_call_shutdown_functions(void);
  54. /* configuration module */
  55. extern int php3_init_config(void);
  56. extern int php3_shutdown_config(void);
  57. /* environment module */
  58. extern int php3_init_environ(void);
  59. extern int php3_shutdown_environ(void);
  60. #endif