- Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathphp_main.h
79 lines (63 loc) · 2.88 KB
/
php_main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Andi Gutmans <andi@php.net> |
| Zeev Suraski <zeev@php.net> |
+----------------------------------------------------------------------+
*/
#ifndefPHP_MAIN_H
#definePHP_MAIN_H
#include"zend_globals.h"
#include"php_globals.h"
#include"SAPI.h"
BEGIN_EXTERN_C()
/* Returns the PHP version the engine was built with. This is useful for
* extensions which want to know the version of PHP at run-time, rather than
* the version they were built with at compile-time.
*/
PHPAPIconstchar*php_version(void);
/* Returns the PHP version id the engine was built with. This is useful for
* extensions which want to know the version of PHP at run-time, rather than
* the version they were built with at compile-time.
*/
PHPAPI unsignedintphp_version_id(void);
PHPAPIzend_resultphp_request_startup(void);
PHPAPIvoidphp_request_shutdown(void*dummy);
PHPAPIzend_resultphp_module_startup(sapi_module_struct*sf, zend_module_entry*additional_module);
PHPAPIvoidphp_module_shutdown(void);
PHPAPIintphp_module_shutdown_wrapper(sapi_module_struct*sapi_globals);
PHPAPIzend_resultphp_register_extensions(zend_module_entry*const*ptr, intcount);
PHPAPIboolphp_execute_script(zend_file_handle*primary_file);
PHPAPIintphp_execute_simple_script(zend_file_handle*primary_file, zval*ret);
PHPAPIzend_resultphp_lint_script(zend_file_handle*file);
PHPAPIvoidphp_handle_aborted_connection(void);
PHPAPIintphp_handle_auth_data(constchar*auth);
PHPAPIvoidphp_html_puts(constchar*str, size_tsiz);
PHPAPIzend_resultphp_stream_open_for_zend_ex(zend_file_handle*handle, intmode);
/* environment module */
externintphp_init_environ(void);
externintphp_shutdown_environ(void);
#ifdefZTS
PHPAPIvoidphp_reserve_tsrm_memory(void);
PHPAPIboolphp_tsrm_startup_ex(intexpected_threads);
PHPAPIboolphp_tsrm_startup(void);
#definePHP_ZTS 1
#else
#definePHP_ZTS 0
#endif
#ifdefPHP_WIN32
#definePHP_OS_STR "WINNT"
#else
#definePHP_OS_STR PHP_OS
#endif
END_EXTERN_C()
#endif