-
Notifications
You must be signed in to change notification settings - Fork 1
/
execdir_arginfo.h
207 lines (194 loc) · 6.27 KB
/
execdir_arginfo.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/*
* defined mod_execdir ARG_INFO
*/
/* {{{ php_exec.c */
/* arginfo_exec_re {{{
*/
#if PHP_VERSION_ID >= 80000
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX (arginfo_exec_re, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO (0, command, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (1, output, IS_ARRAY, 1, "null")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (1, result_code, IS_LONG, 1, "null")
#elif PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_INFO_EX (arginfo_exec_re, 0, 0, 1)
ZEND_ARG_INFO (0, command)
ZEND_ARG_TYPE_INFO (1, output, IS_ARRAY, 1)
ZEND_ARG_TYPE_INFO (1, result_code, IS_LONG, 1)
#else
ZEND_BEGIN_ARG_INFO_EX (arginfo_exec_re, 0, 0, 1)
ZEND_ARG_INFO (0, command)
ZEND_ARG_INFO (1, output) /* ARRAY_INFO(1, output, 1) */
ZEND_ARG_INFO (1, return_value)
#endif
ZEND_END_ARG_INFO ()
/* }}} */
/* arginfo_system_re {{{
*/
#if PHP_VERSION_ID >= 80000
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX (arginfo_system_re, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO (0, command, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (1, result_code, IS_LONG, 1, "null")
#elif PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_INFO_EX (arginfo_system_re, 0, 0, 1)
ZEND_ARG_INFO (0, command)
ZEND_ARG_TYPE_INFO (1, result_code, IS_LONG, 1)
#else
ZEND_BEGIN_ARG_INFO_EX (arginfo_system_re, 0, 0, 1)
ZEND_ARG_INFO (0, command)
ZEND_ARG_INFO (1, return_value)
#endif
ZEND_END_ARG_INFO ()
/* }}} */
/* arginfo_passthru_re {{{
*/
#if PHP_VERSION_ID >= 80000
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_passthru_re, 0, 1, _IS_BOOL, 1)
ZEND_ARG_TYPE_INFO (0, command, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (1, result_code, IS_LONG, 1, "null")
#elif PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_passthru_re, 0, 1, _IS_BOOL, 1)
ZEND_ARG_TYPE_INFO (0, command, IS_STRING, 0)
ZEND_ARG_TYPE_INFO (1, result_code, IS_LONG, 1)
#else
ZEND_BEGIN_ARG_INFO_EX (arginfo_passthru_re, 0, 0, 1)
ZEND_ARG_INFO (0, command)
ZEND_ARG_INFO (1, return_value)
#endif
ZEND_END_ARG_INFO ()
/* }}} */
/* arginfo_jailed_shellcmd_re {{{
*/
#if PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_jailed_shellcmd_re, 0, 1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO (0, cmd, IS_STRING, 0)
#else
ZEND_BEGIN_ARG_INFO (arginfo_jailed_shellcmd_re, 0)
ZEND_ARG_INFO (0, cmd)
#endif
ZEND_END_ARG_INFO ()
/* }}} */
/* arginfo_shell_exec_re {{{
*/
#if PHP_VERSION_ID >= 80000
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX (arginfo_shell_exec_re, 0, 1, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO (0, command, IS_STRING, 0)
#elif PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_INFO_EX (arginfo_shell_exec_re, 0, 0, 1)
ZEND_ARG_TYPE_INFO (0, command, IS_STRING, 0)
#else
ZEND_BEGIN_ARG_INFO (arginfo_shell_exec_re, 0)
ZEND_ARG_INFO (0, cmd)
#endif
ZEND_END_ARG_INFO ()
/* }}} */
/* arginfo_popen_re {{{
*/
#if PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_INFO_EX (arginfo_popen_re, 0, 0, 2)
ZEND_ARG_TYPE_INFO (0, command, IS_STRING, 0)
ZEND_ARG_TYPE_INFO (0, mode, IS_STRING, 0)
#else
ZEND_BEGIN_ARG_INFO (arginfo_popen_re, 0)
ZEND_ARG_INFO (0, command)
ZEND_ARG_INFO (0, mode)
#endif
ZEND_END_ARG_INFO ()
/* }}} */
/* }}} */
/* {{{ proc_open.c */
#ifdef PHP_CAN_SUPPORT_PROC_OPEN
/* arginfo_proc_terminate {{{
*/
#if PHP_VERSION_ID >= 80000
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_proc_terminate, 0, 1, _IS_BOOL, 0)
ZEND_ARG_INFO (0, process)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (0, signal, IS_LONG, 0, "15")
#elif PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_proc_terminate, 0, 1, _IS_BOOL, 0)
ZEND_ARG_INFO (0, process)
ZEND_ARG_TYPE_INFO (0, signal, IS_LONG, 0)
#else
ZEND_BEGIN_ARG_INFO_EX (arginfo_proc_terminate, 0, 0, 1)
ZEND_ARG_INFO (0, process)
ZEND_ARG_INFO (0, signal)
#endif
ZEND_END_ARG_INFO ()
/* }}} */
/* arginfo_proc_close {{{
*/
#if PHP_VERSION_ID >= 80000
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_proc_close, 0, 1, IS_LONG, 0)
#else
ZEND_BEGIN_ARG_INFO (arginfo_proc_close, 0)
#endif
ZEND_ARG_INFO (0, process)
ZEND_END_ARG_INFO ()
/* }}} */
/* arginfo_proc_get_status {{{
*/
#if PHP_VERSION_ID >= 80000
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_proc_get_status, 0, 1, IS_ARRAY, 0)
#else
ZEND_BEGIN_ARG_INFO (arginfo_proc_get_status, 0)
#endif
ZEND_ARG_INFO (0, process)
ZEND_END_ARG_INFO ()
/* }}} */
/* arginfo_proc_open {{{
*/
ZEND_BEGIN_ARG_INFO_EX (arginfo_proc_open, 0, 0, 3)
#if PHP_VERSION_ID >= 80000
ZEND_ARG_TYPE_MASK (0, command, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
ZEND_ARG_TYPE_INFO (0, descriptor_spec, IS_ARRAY, 0)
ZEND_ARG_INFO (1, pipes)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (0, cwd, IS_STRING, 1, "null")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (0, env_vars, IS_ARRAY, 1, "null")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (0, options, IS_ARRAY, 1, "null")
#elif PHP_VERSION_ID >= 70200
ZEND_ARG_INFO (0, command)
ZEND_ARG_TYPE_INFO (0, descriptor_spec, IS_ARRAY, 0)
ZEND_ARG_INFO (1, pipes)
ZEND_ARG_TYPE_INFO (0, cwd, IS_STRING, 1)
ZEND_ARG_TYPE_INFO (0, env_vars, IS_ARRAY, 1)
ZEND_ARG_TYPE_INFO (0, options, IS_ARRAY, 1)
#else
ZEND_ARG_INFO (0, command)
ZEND_ARG_INFO (0, descriptorspec) /* ARRAY_INFO(0, descriptorspec, 1) */
ZEND_ARG_INFO (1, pipes) /* ARRAY_INFO(1, pipes, 1) */
ZEND_ARG_INFO (0, cwd)
ZEND_ARG_INFO (0, env) /* ARRAY_INFO(0, env, 1) */
ZEND_ARG_INFO (0, other_options) /* ARRAY_INFO(0, other_options, 1) */
#endif
ZEND_END_ARG_INFO ()
/* }}} */
#endif
/* }}} */
/* arginfo_pcntl_exec_re {{{
* located in ext/pcntl.c
*/
#if PHP_VERSION_ID >= 80000
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_pcntl_exec_re, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO (0, path, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (0, args, IS_ARRAY, 0, "[]")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE (0, env_vars, IS_ARRAY, 0, "[]")
#elif PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX (arginfo_pcntl_exec_re, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO (0, path, IS_STRING, 0)
ZEND_ARG_TYPE_INFO (0, args, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO (0, env_vars, IS_ARRAY, 0)
#else
ZEND_BEGIN_ARG_INFO_EX (arginfo_pcntl_exec_re, 0, 0, 1)
ZEND_ARG_INFO (0, path)
ZEND_ARG_INFO (0, args)
ZEND_ARG_INFO (0, envs)
#endif
ZEND_END_ARG_INFO ()
/* }}} */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: sw=4 ts=4 fdm=marker
* vim<600: sw=4 ts=4
*/