1 /*
2 +----------------------------------------------------------------------+
3 | Zend Engine, Func Info |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1998-2018 The PHP Group |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.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: Dmitry Stogov <dmitry@zend.com> |
16 +----------------------------------------------------------------------+
17 */
18
19 #include "php.h"
20 #include "zend_compile.h"
21 #include "zend_extensions.h"
22 #include "zend_ssa.h"
23 #include "zend_optimizer_internal.h"
24 #include "zend_inference.h"
25 #include "zend_call_graph.h"
26 #include "zend_func_info.h"
27 #include "zend_inference.h"
28
29 typedef uint32_t (*info_func_t)(const zend_call_info *call_info, const zend_ssa *ssa);
30
31 typedef struct _func_info_t {
32 const char *name;
33 int name_len;
34 uint32_t info;
35 info_func_t info_func;
36 } func_info_t;
37
38 /* MSVC defines its own IN macro, undefine it here */
39 #undef IN
40
41 #define F0(name, info) \
42 {name, sizeof(name)-1, (FUNC_MAY_WARN | (info)), NULL}
43 #define F1(name, info) \
44 {name, sizeof(name)-1, (FUNC_MAY_WARN | MAY_BE_RC1 | (info)), NULL}
45 #define FN(name, info) \
46 {name, sizeof(name)-1, (FUNC_MAY_WARN | MAY_BE_RC1 | MAY_BE_RCN | (info)), NULL}
47 #define FR(name, info) \
48 {name, sizeof(name)-1, (FUNC_MAY_WARN | MAY_BE_REF | (info)), NULL}
49 #define FX(name, info) \
50 {name, sizeof(name)-1, (FUNC_MAY_WARN | MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_REF | (info)), NULL}
51 #define I0(name, info) \
52 {name, sizeof(name)-1, (info), NULL}
53 #define I1(name, info) \
54 {name, sizeof(name)-1, (MAY_BE_RC1 | (info)), NULL}
55 #define IN(name, info) \
56 {name, sizeof(name)-1, (MAY_BE_RC1 | MAY_BE_RCN | (info)), NULL}
57 #define FC(name, callback) \
58 {name, sizeof(name)-1, 0, callback}
59
zend_strlen_info(const zend_call_info * call_info,const zend_ssa * ssa)60 static uint32_t zend_strlen_info(const zend_call_info *call_info, const zend_ssa *ssa)
61 {
62 if (call_info->caller_init_opline->extended_value == (uint32_t)call_info->num_args &&
63 call_info->num_args == 1) {
64
65 uint32_t tmp = 0;
66 if (call_info->arg_info[0].opline) {
67 uint32_t arg_info = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[0].opline);
68
69 if (arg_info & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|MAY_BE_OBJECT)) {
70 tmp |= MAY_BE_LONG;
71 }
72 if (arg_info & (MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)) {
73 /* warning, and returns NULL */
74 tmp |= FUNC_MAY_WARN | MAY_BE_NULL;
75 }
76 } else {
77 tmp |= MAY_BE_LONG | FUNC_MAY_WARN | MAY_BE_NULL;
78 }
79 return tmp;
80 } else if (call_info->num_args != -1) {
81 /* warning, and returns NULL */
82 return FUNC_MAY_WARN | MAY_BE_NULL;
83 } else {
84 return MAY_BE_LONG | FUNC_MAY_WARN | MAY_BE_NULL;
85 }
86 }
87
zend_dechex_info(const zend_call_info * call_info,const zend_ssa * ssa)88 static uint32_t zend_dechex_info(const zend_call_info *call_info, const zend_ssa *ssa)
89 {
90 if (call_info->caller_init_opline->extended_value == (uint32_t)call_info->num_args &&
91 call_info->num_args == 1) {
92 return MAY_BE_RC1 | MAY_BE_STRING;
93 } else if (call_info->num_args != -1) {
94 /* warning, and returns NULL */
95 return FUNC_MAY_WARN | MAY_BE_NULL;
96 } else {
97 return FUNC_MAY_WARN | MAY_BE_RC1 | MAY_BE_STRING | MAY_BE_NULL;
98 }
99 }
100
zend_range_info(const zend_call_info * call_info,const zend_ssa * ssa)101 static uint32_t zend_range_info(const zend_call_info *call_info, const zend_ssa *ssa)
102 {
103 if (call_info->caller_init_opline->extended_value == (uint32_t)call_info->num_args &&
104 (call_info->num_args == 2 || call_info->num_args == 3)) {
105
106 uint32_t t1 = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[0].opline);
107 uint32_t t2 = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[1].opline);
108 uint32_t t3 = 0;
109 uint32_t tmp = FUNC_MAY_WARN | MAY_BE_RC1 | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG;
110
111 if (call_info->num_args == 3) {
112 t3 = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[2].opline);
113 }
114 if ((t1 & MAY_BE_STRING) && (t2 & MAY_BE_STRING)) {
115 tmp |= MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_DOUBLE | MAY_BE_ARRAY_OF_STRING;
116 }
117 if ((t1 & (MAY_BE_DOUBLE|MAY_BE_STRING))
118 || (t2 & (MAY_BE_DOUBLE|MAY_BE_STRING))
119 || (t3 & (MAY_BE_DOUBLE|MAY_BE_STRING))) {
120 tmp |= MAY_BE_ARRAY_OF_DOUBLE;
121 }
122 if ((t1 & (MAY_BE_ANY-(MAY_BE_STRING|MAY_BE_DOUBLE))) && (t2 & (MAY_BE_ANY-(MAY_BE_STRING|MAY_BE_DOUBLE)))) {
123 if ((t3 & MAY_BE_ANY) != MAY_BE_DOUBLE) {
124 tmp |= MAY_BE_ARRAY_OF_LONG;
125 }
126 }
127 return tmp;
128 } else {
129 /* may warning, and return FALSE */
130 return FUNC_MAY_WARN | MAY_BE_RC1 | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_DOUBLE | MAY_BE_ARRAY_OF_STRING;
131 }
132 }
133
zend_is_type_info(const zend_call_info * call_info,const zend_ssa * ssa)134 static uint32_t zend_is_type_info(const zend_call_info *call_info, const zend_ssa *ssa)
135 {
136 if (call_info->caller_init_opline->extended_value == (uint32_t)call_info->num_args &&
137 call_info->num_args == 1) {
138 return MAY_BE_FALSE | MAY_BE_TRUE;
139 } else {
140 return MAY_BE_FALSE | MAY_BE_TRUE | FUNC_MAY_WARN;
141 }
142 }
143
zend_l_ss_info(const zend_call_info * call_info,const zend_ssa * ssa)144 static uint32_t zend_l_ss_info(const zend_call_info *call_info, const zend_ssa *ssa)
145 {
146 if (call_info->caller_init_opline->extended_value == (uint32_t)call_info->num_args &&
147 call_info->num_args == 2) {
148
149 uint32_t arg1_info = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[0].opline);
150 uint32_t arg2_info = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[1].opline);
151 uint32_t tmp = 0;
152
153 if ((arg1_info & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|MAY_BE_OBJECT)) &&
154 (arg2_info & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|MAY_BE_OBJECT))) {
155 tmp |= MAY_BE_LONG;
156 }
157 if ((arg1_info & (MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)) ||
158 (arg2_info & (MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE))) {
159 /* warning, and returns NULL */
160 tmp |= FUNC_MAY_WARN | MAY_BE_NULL;
161 }
162 return tmp;
163 } else {
164 /* warning, and returns NULL */
165 return FUNC_MAY_WARN | MAY_BE_NULL | MAY_BE_LONG;
166 }
167 }
168
zend_lb_ssn_info(const zend_call_info * call_info,const zend_ssa * ssa)169 static uint32_t zend_lb_ssn_info(const zend_call_info *call_info, const zend_ssa *ssa)
170 {
171 if (call_info->caller_init_opline->extended_value == (uint32_t)call_info->num_args &&
172 call_info->num_args == 3) {
173 uint32_t arg1_info = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[0].opline);
174 uint32_t arg2_info = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[1].opline);
175 uint32_t arg3_info = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[2].opline);
176 uint32_t tmp = 0;
177
178 if ((arg1_info & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|MAY_BE_OBJECT)) &&
179 (arg2_info & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|MAY_BE_OBJECT)) &&
180 (arg3_info & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|MAY_BE_OBJECT))) {
181 tmp |= MAY_BE_LONG | MAY_BE_FALSE;
182 }
183 if ((arg1_info & (MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)) ||
184 (arg2_info & (MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)) ||
185 (arg3_info & (MAY_BE_STRING|MAY_BE_RESOURCE|MAY_BE_ARRAY|MAY_BE_OBJECT))) {
186 /* warning, and returns NULL */
187 tmp |= FUNC_MAY_WARN | MAY_BE_NULL;
188 }
189 return tmp;
190 } else {
191 /* warning, and returns NULL */
192 return FUNC_MAY_WARN | MAY_BE_NULL | MAY_BE_LONG;
193 }
194 }
195
zend_b_s_info(const zend_call_info * call_info,const zend_ssa * ssa)196 static uint32_t zend_b_s_info(const zend_call_info *call_info, const zend_ssa *ssa)
197 {
198 if (call_info->caller_init_opline->extended_value == (uint32_t)call_info->num_args &&
199 call_info->num_args == 1) {
200
201 uint32_t arg1_info = _ssa_op1_info(call_info->caller_op_array, ssa, call_info->arg_info[0].opline);
202 uint32_t tmp = 0;
203
204 if (arg1_info & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|MAY_BE_OBJECT)) {
205 tmp |= MAY_BE_FALSE | MAY_BE_TRUE;
206 }
207 if (arg1_info & (MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)) {
208 /* warning, and returns NULL */
209 tmp |= FUNC_MAY_WARN | MAY_BE_NULL;
210 }
211 return tmp;
212 } else {
213 /* warning, and returns NULL */
214 return FUNC_MAY_WARN | MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE;
215 }
216 }
217
218 #define UNKNOWN_INFO (MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF)
219
220 static const func_info_t func_infos[] = {
221 /* zend */
222 I1("zend_version", MAY_BE_STRING),
223 I0("gc_collect_cycles", MAY_BE_LONG),
224 I0("gc_enabled", MAY_BE_FALSE | MAY_BE_TRUE),
225 F0("gc_enable", MAY_BE_NULL),
226 F0("gc_disable", MAY_BE_NULL),
227 F0("func_num_args", MAY_BE_LONG),
228 FN("func_get_arg", UNKNOWN_INFO),
229 F1("func_get_args", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ANY),
230 FC("strlen", zend_strlen_info),
231 FC("strcmp", zend_l_ss_info),
232 FC("strncmp", zend_lb_ssn_info),
233 FC("strcasecmp", zend_l_ss_info),
234 FC("strncasecmp", zend_lb_ssn_info),
235 F1("each", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_KEY_ANY),
236 F0("error_reporting", MAY_BE_NULL | MAY_BE_LONG),
237 F0("define", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_NULL), // TODO: inline
238 FC("defined", zend_b_s_info), // TODO: inline
239 FN("get_class", MAY_BE_FALSE | MAY_BE_STRING),
240 FN("get_called_class", MAY_BE_FALSE | MAY_BE_STRING),
241 FN("get_parrent_class", MAY_BE_FALSE | MAY_BE_STRING),
242 F0("is_subclass_of", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), // TODO: inline
243 F0("is_a", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), // TODO: inline
244 F1("get_class_vars", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF),
245 FN("get_object_vars", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF),
246 F1("get_class_methods", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
247 F0("method_exists", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
248 F0("property_exists", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
249 F0("class_exists", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
250 F0("interface_exists", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
251 F0("trait_exists", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
252 FC("function_exists", zend_b_s_info), // TODO: inline
253 F0("class_alias", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
254 F1("get_included_files", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
255 F0("trigger_error", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
256 F0("user_error", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
257 FN("set_error_handler", MAY_BE_NULL | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_OBJECT | MAY_BE_OBJECT),
258 I0("restore_error_handler", MAY_BE_NULL | MAY_BE_TRUE),
259 F1("get_declared_traits", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
260 F1("get_declared_classes", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
261 F1("get_declared_interfaces", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
262 F1("get_defined_functions", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ARRAY),
263 I1("get_defined_vars", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF),
264 FN("create_function", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
265 F1("get_resource_type", MAY_BE_NULL | MAY_BE_STRING),
266 F1("get_defined_constants", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_DOUBLE | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_RESOURCE | MAY_BE_ARRAY_OF_ARRAY),
267 F0("debug_print_backtrace", MAY_BE_NULL),
268 F1("debug_backtrace", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ARRAY),
269 F1("get_loaded_extensions", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
270 FC("extension_loaded", zend_b_s_info),
271 F1("get_extension_funcs", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
272
273 /* ext/standard */
274 FN("constant", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_STRING | MAY_BE_RESOURCE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
275 F1("bin2hex", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
276 F1("hex2bin", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
277 F0("sleep", MAY_BE_FALSE | MAY_BE_LONG),
278 F0("usleep", MAY_BE_NULL | MAY_BE_FALSE),
279 #if HAVE_NANOSLEEP
280 F0("time_nanosleep", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG),
281 F0("time_sleep_until", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
282 #endif
283 #if HAVE_STRPTIME
284 F1("strptime", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
285 #endif
286 F0("flush", MAY_BE_NULL),
287 F1("wordwrap", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
288 F1("htmlspecialchars", MAY_BE_NULL | MAY_BE_STRING),
289 F1("htmlentities", MAY_BE_NULL | MAY_BE_STRING),
290 FN("html_entity_decode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
291 FN("htmlspecialchars_decode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
292 F1("get_html_translation_table", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING),
293 F1("sha1", MAY_BE_NULL | MAY_BE_STRING),
294 F1("sha1_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
295 F1("md5", MAY_BE_NULL | MAY_BE_STRING),
296 F1("md5_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
297 F0("crc32", MAY_BE_NULL | MAY_BE_LONG),
298 F1("iptcparse", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ARRAY),
299 F1("iptcembed", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
300 F1("getimagesize", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
301 F1("getimagesizefromstring", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
302 F1("image_type_to_mime_type", MAY_BE_NULL | MAY_BE_STRING),
303 F1("image_type_to_extension", MAY_BE_FALSE | MAY_BE_STRING),
304 F0("phpinfo", MAY_BE_NULL | MAY_BE_TRUE),
305 F1("phpversion", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
306 F0("phpcredits", MAY_BE_NULL | MAY_BE_TRUE),
307 F1("php_sapi_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
308 F1("php_uname", MAY_BE_NULL | MAY_BE_STRING),
309 F1("php_ini_scanned_files", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
310 F1("php_ini_loaded_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
311 F0("strnatcmp", MAY_BE_NULL | MAY_BE_LONG),
312 F0("strnatcasecmp", MAY_BE_NULL | MAY_BE_LONG),
313 F0("substr_count", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
314 F0("strspn", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
315 F0("strcspn", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
316 F1("strtok", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
317 FN("strtoupper", MAY_BE_NULL | MAY_BE_STRING),
318 FN("strtolower", MAY_BE_NULL | MAY_BE_STRING),
319 F0("strpos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
320 F0("stripos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
321 F0("strrpos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
322 F0("strripos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
323 F1("strrev", MAY_BE_NULL | MAY_BE_STRING),
324 F1("hebrev", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
325 F1("hebrevc", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
326 F1("nl2br", MAY_BE_NULL | MAY_BE_STRING),
327 F1("basename", MAY_BE_NULL | MAY_BE_STRING),
328 F1("dirname", MAY_BE_NULL | MAY_BE_STRING),
329 F1("pathinfo", MAY_BE_NULL | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING),
330 F1("stripslashes", MAY_BE_NULL | MAY_BE_STRING),
331 F1("stripcslashes", MAY_BE_NULL | MAY_BE_STRING),
332 F1("strstr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
333 F1("stristr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
334 F1("strrchr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
335 F1("str_shuffle", MAY_BE_NULL | MAY_BE_STRING),
336 F1("str_word_count", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
337 F1("str_split", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
338 F1("strpbrk", MAY_BE_FALSE | MAY_BE_STRING),
339 F0("substr_compare", MAY_BE_FALSE | MAY_BE_LONG),
340 #ifdef HAVE_STRCOLL
341 F0("strcoll", MAY_BE_NULL | MAY_BE_LONG),
342 #endif
343 #ifdef HAVE_STRFMON
344 F1("money_format", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
345 #endif
346 FN("substr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
347 FN("substr_replace", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING),
348 F1("quotemeta", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
349 F1("ucfirst", MAY_BE_NULL | MAY_BE_STRING),
350 F1("lcfirst", MAY_BE_NULL | MAY_BE_STRING),
351 F1("ucwords", MAY_BE_NULL | MAY_BE_STRING),
352 FN("strtr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
353 FN("addslashes", MAY_BE_NULL | MAY_BE_STRING),
354 F1("addcslashes", MAY_BE_NULL | MAY_BE_STRING),
355 FN("rtrim", MAY_BE_NULL | MAY_BE_STRING),
356 FN("str_replace", MAY_BE_NULL | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY | MAY_BE_ARRAY_OF_OBJECT),
357 FN("str_ireplace", MAY_BE_NULL | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY | MAY_BE_ARRAY_OF_OBJECT),
358 F1("str_repeat", MAY_BE_NULL | MAY_BE_STRING),
359 F1("count_chars", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_LONG),
360 F1("chunk_split", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
361 FN("trim", MAY_BE_NULL | MAY_BE_STRING),
362 FN("ltrim", MAY_BE_NULL | MAY_BE_STRING),
363 F1("strip_tags", MAY_BE_NULL | MAY_BE_STRING),
364 F0("similar_text", MAY_BE_NULL | MAY_BE_LONG),
365 F1("explode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
366 FN("implode", MAY_BE_NULL | MAY_BE_STRING),
367 FN("join", MAY_BE_NULL | MAY_BE_STRING),
368 FN("setlocale", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
369 F1("localeconv", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
370 #if HAVE_NL_LANGINFO
371 F1("nl_langinfo", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
372 #endif
373 F1("soundex", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
374 F0("levenshtein", MAY_BE_NULL | MAY_BE_LONG),
375 F1("chr", MAY_BE_NULL | MAY_BE_STRING),
376 F0("ord", MAY_BE_NULL | MAY_BE_LONG),
377 F0("parse_str", MAY_BE_NULL),
378 F1("str_getcsv", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_STRING),
379 F1("str_pad", MAY_BE_NULL | MAY_BE_STRING),
380 F1("chop", MAY_BE_NULL | MAY_BE_STRING),
381 F1("strchr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
382 F1("sprintf", MAY_BE_FALSE | MAY_BE_STRING),
383 F0("printf", MAY_BE_FALSE | MAY_BE_LONG),
384 F0("vprintf", MAY_BE_FALSE | MAY_BE_LONG),
385 F1("vsprintf", MAY_BE_FALSE | MAY_BE_STRING),
386 F0("fprintf", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
387 F0("vfprintf", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
388 F1("sscanf", MAY_BE_NULL | MAY_BE_LONG | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ANY),
389 F1("fscanf", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ANY),
390 F1("parse_url", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_LONG),
391 F1("urlencode", MAY_BE_NULL | MAY_BE_STRING),
392 F1("urldecode", MAY_BE_NULL | MAY_BE_STRING),
393 F1("rawurlencode", MAY_BE_NULL | MAY_BE_STRING),
394 F1("rawurldecode", MAY_BE_NULL | MAY_BE_STRING),
395 F1("http_build_query", MAY_BE_FALSE | MAY_BE_STRING),
396 #if defined(HAVE_SYMLINK) || defined(PHP_WIN32)
397 F1("readlink", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
398 F0("linkinfo", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
399 F0("symlink", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
400 F0("link", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
401 #endif
402 F0("unlink", MAY_BE_FALSE | MAY_BE_TRUE),
403 F1("exec", MAY_BE_FALSE | MAY_BE_STRING),
404 F1("system", MAY_BE_FALSE | MAY_BE_STRING),
405 F1("escapeshellcmd", MAY_BE_NULL | MAY_BE_STRING),
406 F1("escapeshellarg", MAY_BE_NULL | MAY_BE_STRING),
407 F1("passthru", MAY_BE_NULL | MAY_BE_FALSE),
408 F1("shell_exec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
409 #ifdef PHP_CAN_SUPPORT_PROC_OPEN
410 F1("proc_open", MAY_BE_FALSE | MAY_BE_RESOURCE),
411 F0("proc_close", MAY_BE_FALSE | MAY_BE_LONG),
412 F0("proc_terminate", MAY_BE_FALSE | MAY_BE_TRUE),
413 F1("proc_get_status", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
414 #endif
415 #ifdef HAVE_NICE
416 F0("proc_nice", MAY_BE_FALSE | MAY_BE_TRUE),
417 #endif
418 F0("rand", MAY_BE_NULL | MAY_BE_LONG),
419 F0("srand", MAY_BE_NULL),
420 F0("getrandmax", MAY_BE_NULL | MAY_BE_LONG),
421 F0("mt_rand", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
422 F0("mt_srand", MAY_BE_NULL),
423 F0("mt_getrandmax", MAY_BE_NULL | MAY_BE_LONG),
424 #if HAVE_GETSERVBYNAME
425 F0("getservbyname", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
426 #endif
427 #if HAVE_GETSERVBYPORT
428 F1("getservbyport", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
429 #endif
430 #if HAVE_GETPROTOBYNAME
431 F0("getprotobyname", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
432 #endif
433 #if HAVE_GETPROTOBYNUMBER
434 F1("getprotobynumber", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
435 #endif
436 F0("getmyuid", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
437 F0("getmygid", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
438 F0("getmypid", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
439 F0("getmyinode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
440 F0("getlastmod", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
441 F1("base64_decode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
442 F1("base64_encode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
443 F1("password_hash", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
444 F1("password_get_info", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
445 F0("password_needs_rehash", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
446 F0("password_verify", MAY_BE_FALSE | MAY_BE_TRUE),
447 F1("convert_uuencode", MAY_BE_FALSE | MAY_BE_STRING),
448 F1("convert_uudecode", MAY_BE_FALSE | MAY_BE_STRING),
449 F0("abs", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_DOUBLE),
450 F0("ceil", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_DOUBLE),
451 F0("floor", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_DOUBLE),
452 F0("round", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_DOUBLE),
453 F0("sin", MAY_BE_NULL | MAY_BE_DOUBLE),
454 F0("cos", MAY_BE_NULL | MAY_BE_DOUBLE),
455 F0("tan", MAY_BE_NULL | MAY_BE_DOUBLE),
456 F0("asin", MAY_BE_NULL | MAY_BE_DOUBLE),
457 F0("acos", MAY_BE_NULL | MAY_BE_DOUBLE),
458 F0("atan", MAY_BE_NULL | MAY_BE_DOUBLE),
459 F0("atanh", MAY_BE_NULL | MAY_BE_DOUBLE),
460 F0("atan2", MAY_BE_NULL | MAY_BE_DOUBLE),
461 F0("sinh", MAY_BE_NULL | MAY_BE_DOUBLE),
462 F0("cosh", MAY_BE_NULL | MAY_BE_DOUBLE),
463 F0("tanh", MAY_BE_NULL | MAY_BE_DOUBLE),
464 F0("asinh", MAY_BE_NULL | MAY_BE_DOUBLE),
465 F0("acosh", MAY_BE_NULL | MAY_BE_DOUBLE),
466 F0("expm1", MAY_BE_NULL | MAY_BE_DOUBLE),
467 F0("log1p", MAY_BE_NULL | MAY_BE_DOUBLE),
468 F0("pi", MAY_BE_DOUBLE),
469 F0("is_finite", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
470 F0("is_nan", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
471 F0("is_infinite", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
472 F0("pow", MAY_BE_NULL | MAY_BE_LONG | MAY_BE_DOUBLE),
473 F0("exp", MAY_BE_NULL | MAY_BE_DOUBLE),
474 F0("log", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_DOUBLE),
475 F0("log10", MAY_BE_NULL | MAY_BE_DOUBLE),
476 F0("sqrt", MAY_BE_NULL | MAY_BE_DOUBLE),
477 F0("hypot", MAY_BE_NULL | MAY_BE_DOUBLE),
478 F0("deg2rad", MAY_BE_NULL | MAY_BE_DOUBLE),
479 F0("rad2deg", MAY_BE_NULL | MAY_BE_DOUBLE),
480 F0("bindec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_DOUBLE),
481 F0("hexdec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_DOUBLE),
482 F0("octdec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_DOUBLE),
483 F1("decbin", MAY_BE_NULL | MAY_BE_STRING),
484 F1("decoct", MAY_BE_NULL | MAY_BE_STRING),
485 FC("dechex", zend_dechex_info),
486 F1("base_convert", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
487 F1("number_format", MAY_BE_NULL | MAY_BE_STRING),
488 F0("fmod", MAY_BE_NULL | MAY_BE_DOUBLE),
489 #ifdef HAVE_INET_NTOP
490 F1("inet_ntop", MAY_BE_FALSE | MAY_BE_STRING),
491 #endif
492 #ifdef HAVE_INET_PTON
493 F1("inet_pton", MAY_BE_FALSE | MAY_BE_STRING),
494 #endif
495 F0("ip2long", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
496 F1("long2ip", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
497 F1("getenv", MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING),
498 #ifdef HAVE_PUTENV
499 F0("putenv", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
500 #endif
501 F1("getopt", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
502 #ifdef HAVE_GETLOADAVG
503 F1("sys_getloadavg", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_DOUBLE),
504 #endif
505 #ifdef HAVE_GETTIMEOFDAY
506 F1("microtime", MAY_BE_NULL | MAY_BE_DOUBLE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_LONG | MAY_BE_STRING),
507 F1("gettimeofday", MAY_BE_NULL | MAY_BE_DOUBLE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_STRING),
508 #endif
509 #ifdef HAVE_GETRUSAGE
510 F1("getrusage", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG),
511 #endif
512 #ifdef HAVE_GETTIMEOFDAY
513 F1("uniqid", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
514 #endif
515 F1("quoted_printable_decode", MAY_BE_NULL | MAY_BE_STRING),
516 F1("quoted_printable_encode", MAY_BE_NULL | MAY_BE_STRING),
517 F1("convert_cyr_string", MAY_BE_NULL | MAY_BE_STRING),
518 F1("get_current_user", MAY_BE_NULL | MAY_BE_STRING),
519 F0("set_time_limit", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
520 F0("header_register_callback", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
521 F1("get_cfg_var", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
522 F0("magic_quotes_runtime", MAY_BE_NULL | MAY_BE_FALSE),
523 F0("set_magic_quotes_runtime", MAY_BE_NULL | MAY_BE_FALSE),
524 F0("get_magic_quotes_gpc", MAY_BE_NULL | MAY_BE_FALSE),
525 F0("get_magic_quotes_runtime", MAY_BE_NULL | MAY_BE_FALSE),
526 F0("error_log", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
527 F1("error_get_last", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
528 FN("call_user_func", UNKNOWN_INFO),
529 FN("call_user_func_array", UNKNOWN_INFO),
530 FN("call_user_method", UNKNOWN_INFO),
531 FN("call_user_method_array", UNKNOWN_INFO),
532 FN("forward_static_call", UNKNOWN_INFO),
533 FN("forward_static_call_array", UNKNOWN_INFO),
534 F1("serialize", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
535 FN("unserialize", UNKNOWN_INFO),
536 F0("var_dump", MAY_BE_NULL),
537 F1("var_export", MAY_BE_NULL | MAY_BE_STRING),
538 F0("debug_zval_dump", MAY_BE_NULL),
539 F1("print_r", MAY_BE_FALSE | MAY_BE_STRING),
540 F0("memory_get_usage", MAY_BE_FALSE | MAY_BE_LONG),
541 F0("memory_get_peak_usage", MAY_BE_FALSE | MAY_BE_LONG),
542 F0("register_shutdown_function", MAY_BE_NULL | MAY_BE_FALSE),
543 F0("register_tick_function", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
544 F0("unregister_tick_function", MAY_BE_NULL),
545 F1("highlight_file", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
546 F1("show_source", MAY_BE_FALSE | MAY_BE_STRING),
547 F1("highlight_string", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
548 F1("php_strip_whitespace", MAY_BE_FALSE | MAY_BE_STRING),
549 FN("ini_get", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
550 F1("ini_get_all", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
551 FN("ini_set", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
552 F1("ini_alter", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
553 F0("ini_restore", MAY_BE_NULL),
554 F1("get_include_path", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
555 F1("set_include_path", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
556 F0("restore_include_path", MAY_BE_NULL),
557 F0("setcookie", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
558 F0("setrawcookie", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
559 F0("header", MAY_BE_NULL),
560 F0("header_remove", MAY_BE_NULL),
561 F0("headers_sent", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
562 F1("headers_list", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
563 F0("http_response_code", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
564 F0("connection_aborted", MAY_BE_LONG),
565 F0("connection_status", MAY_BE_LONG),
566 F0("ignore_user_abort", MAY_BE_NULL | MAY_BE_LONG),
567 F1("parse_ini_file", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_DOUBLE | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
568 F1("parse_ini_string", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_DOUBLE | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
569 #if ZEND_DEBUG
570 F1("config_get_hash", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
571 #endif
572 F0("is_uploaded_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
573 F0("move_uploaded_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
574 F1("gethostbyaddr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
575 F1("gethostbyname", MAY_BE_NULL | MAY_BE_STRING),
576 F1("gethostbynamel", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
577 #ifdef HAVE_GETHOSTNAME
578 F1("gethostname", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
579 #endif
580 #if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__)))
581 F0("dns_check_record", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
582 F0("checkdnsrr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
583 # if defined(PHP_WIN32) || HAVE_FULL_DNS_FUNCS
584 F0("dns_get_mx", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
585 F0("getmxrr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
586 F1("dns_get_record", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ARRAY),
587 # endif
588 #endif
589 F0("intval", MAY_BE_NULL | MAY_BE_LONG),
590 F0("floatval", MAY_BE_NULL | MAY_BE_DOUBLE),
591 F0("doubleval", MAY_BE_NULL | MAY_BE_DOUBLE),
592 FN("strval", MAY_BE_NULL | MAY_BE_STRING),
593 F0("boolval", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
594 FN("gettype", MAY_BE_NULL | MAY_BE_STRING),
595 F0("settype", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
596 FC("is_null", zend_is_type_info),
597 F0("is_resource", MAY_BE_FALSE | MAY_BE_TRUE), // TODO: inline with support for closed resources
598 FC("is_bool", zend_is_type_info),
599 FC("is_long", zend_is_type_info),
600 FC("is_float", zend_is_type_info),
601 FC("is_int", zend_is_type_info),
602 FC("is_integer", zend_is_type_info),
603 FC("is_double", zend_is_type_info),
604 FC("is_real", zend_is_type_info),
605 F0("is_numeric", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
606 FC("is_string", zend_is_type_info),
607 FC("is_array", zend_is_type_info),
608 F0("is_object", MAY_BE_FALSE | MAY_BE_TRUE), // TODO: inline with support for incomplete class
609 F0("is_scalar", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
610 F0("is_callable", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
611 F0("pclose", MAY_BE_FALSE | MAY_BE_LONG),
612 F1("popen", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
613 F0("readfile", MAY_BE_FALSE | MAY_BE_LONG),
614 F0("rewind", MAY_BE_FALSE | MAY_BE_TRUE),
615 F0("rmdir", MAY_BE_FALSE | MAY_BE_TRUE),
616 F0("umask", MAY_BE_FALSE | MAY_BE_LONG),
617 F0("fclose", MAY_BE_FALSE | MAY_BE_TRUE),
618 F0("feof", MAY_BE_FALSE | MAY_BE_TRUE),
619 F1("fgetc", MAY_BE_FALSE | MAY_BE_STRING),
620 F1("fgets", MAY_BE_FALSE | MAY_BE_STRING),
621 F1("fgetss", MAY_BE_FALSE | MAY_BE_STRING),
622 F1("fread", MAY_BE_FALSE | MAY_BE_STRING),
623 F1("fopen", MAY_BE_FALSE | MAY_BE_RESOURCE),
624 F0("fpassthru", MAY_BE_FALSE | MAY_BE_LONG),
625 F0("ftruncate", MAY_BE_FALSE | MAY_BE_TRUE),
626 F1("fstat", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG),
627 F0("fseek", MAY_BE_FALSE | MAY_BE_LONG),
628 F0("ftell", MAY_BE_FALSE | MAY_BE_LONG),
629 F0("fflush", MAY_BE_FALSE | MAY_BE_TRUE),
630 F0("fwrite", MAY_BE_FALSE | MAY_BE_LONG),
631 F0("fputs", MAY_BE_FALSE | MAY_BE_LONG),
632 F0("mkdir", MAY_BE_FALSE | MAY_BE_TRUE),
633 F0("rename", MAY_BE_FALSE | MAY_BE_TRUE),
634 F0("copy", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
635 F1("tempnam", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
636 F1("tmpfile", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
637 F1("file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
638 F1("file_get_contents", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
639 F0("file_put_contents", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
640 F0("stream_select", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
641 F1("stream_context_create", MAY_BE_FALSE | MAY_BE_RESOURCE),
642 F0("stream_context_set_params", MAY_BE_FALSE | MAY_BE_TRUE),
643 F1("stream_context_get_params", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
644 F0("stream_context_set_option", MAY_BE_FALSE | MAY_BE_TRUE),
645 FN("stream_context_get_options", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
646 FN("stream_context_get_default", MAY_BE_FALSE | MAY_BE_RESOURCE),
647 FN("stream_context_set_default", MAY_BE_FALSE | MAY_BE_RESOURCE),
648 FN("stream_filter_prepend", MAY_BE_FALSE | MAY_BE_RESOURCE),
649 FN("stream_filter_append", MAY_BE_FALSE | MAY_BE_RESOURCE),
650 F0("stream_filter_remove", MAY_BE_FALSE | MAY_BE_TRUE),
651 F1("stream_socket_client", MAY_BE_FALSE | MAY_BE_RESOURCE),
652 F1("stream_socket_server", MAY_BE_FALSE | MAY_BE_RESOURCE),
653 F1("stream_socket_accept", MAY_BE_FALSE | MAY_BE_RESOURCE),
654 F1("stream_socket_get_name", MAY_BE_FALSE | MAY_BE_STRING),
655 F1("stream_socket_recvfrom", MAY_BE_FALSE | MAY_BE_STRING),
656 F0("stream_socket_sendto", MAY_BE_FALSE | MAY_BE_LONG),
657 F0("stream_socket_enable_crypto", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_LONG),
658 #ifdef HAVE_SHUTDOWN
659 F0("stream_socket_shutdown", MAY_BE_FALSE | MAY_BE_TRUE),
660 #endif
661 #if HAVE_SOCKETPAIR
662 F1("stream_socket_pair", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_RESOURCE),
663 #endif
664 F0("stream_copy_to_stream", MAY_BE_FALSE | MAY_BE_LONG),
665 F1("stream_get_contents", MAY_BE_FALSE | MAY_BE_STRING),
666 F0("stream_supports_lock", MAY_BE_FALSE | MAY_BE_TRUE),
667 F1("fgetcsv", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_STRING),
668 F0("fputcsv", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
669 F0("flock", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
670 F1("get_meta_tags", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING),
671 F0("stream_set_read_buffer", MAY_BE_FALSE | MAY_BE_LONG),
672 F0("stream_set_write_buffer", MAY_BE_FALSE | MAY_BE_LONG),
673 F0("set_file_buffer", MAY_BE_FALSE | MAY_BE_LONG),
674 F0("stream_set_chunk_size", MAY_BE_FALSE | MAY_BE_LONG),
675 F0("set_socket_blocking", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
676 F0("stream_set_blocking", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
677 F0("socket_set_blocking", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
678 F1("stream_get_meta_data", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
679 F1("stream_get_line", MAY_BE_FALSE | MAY_BE_STRING),
680 F0("stream_wrapper_register", MAY_BE_FALSE | MAY_BE_TRUE),
681 F0("stream_register_wrapper", MAY_BE_FALSE | MAY_BE_TRUE),
682 F0("stream_wrapper_unregister", MAY_BE_FALSE | MAY_BE_TRUE),
683 F0("stream_wrapper_restore", MAY_BE_FALSE | MAY_BE_TRUE),
684 F1("stream_get_wrappers", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
685 F1("stream_get_transports", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
686 F1("stream_resolve_include_path", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
687 F0("stream_is_local", MAY_BE_FALSE | MAY_BE_TRUE),
688 F1("get_headers", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
689 #if HAVE_SYS_TIME_H || defined(PHP_WIN32)
690 F0("stream_set_timeout", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
691 F0("socket_set_timeout", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
692 #endif
693 F1("socket_get_status", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
694 #if (!defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
695 F1("realpath", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
696 #endif
697 #ifdef HAVE_FNMATCH
698 F0("fnmatch", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
699 #endif
700 F1("fsockopen", MAY_BE_FALSE | MAY_BE_RESOURCE),
701 FN("pfsockopen", MAY_BE_FALSE | MAY_BE_RESOURCE),
702 F1("pack", MAY_BE_FALSE | MAY_BE_STRING),
703 F1("unpack", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
704 F1("get_browser", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_OBJECT | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
705 F1("crypt", MAY_BE_NULL | MAY_BE_STRING),
706 FN("opendir", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
707 F0("closedir", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
708 F0("chdir", MAY_BE_FALSE | MAY_BE_TRUE),
709 #if defined(HAVE_CHROOT) && !defined(ZTS) && ENABLE_CHROOT_FUNC
710 F0("chroot", MAY_BE_FALSE | MAY_BE_TRUE),
711 #endif
712 F1("getcwd", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
713 F0("rewinddir", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
714 F1("readdir", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
715 F1("dir", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
716 F1("scandir", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
717 #ifdef HAVE_GLOB
718 F1("glob", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
719 #endif
720 F0("fileatime", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
721 F0("filectime", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
722 F0("filegroup", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
723 F0("fileinode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
724 F0("filemtime", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
725 F0("fileowner", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
726 F0("fileperms", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
727 F0("filesize", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
728 F1("filetype", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
729 F0("file_exists", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
730 F0("is_writable", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
731 F0("is_writeable", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
732 F0("is_readable", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
733 F0("is_executable", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
734 F0("is_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
735 F0("is_dir", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
736 F0("is_link", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
737 F1("stat", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
738 F1("lstat", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
739 F0("chown", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
740 F0("chgrp", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
741 #if HAVE_LCHOWN
742 F0("lchown", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
743 #endif
744 #if HAVE_LCHOWN
745 F0("lchgrp", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
746 #endif
747 F0("chmod", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
748 #if HAVE_UTIME
749 F0("touch", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
750 #endif
751 F0("clearstatcache", MAY_BE_NULL),
752 F0("disk_total_space", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_DOUBLE),
753 F0("disk_free_space", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_DOUBLE),
754 F0("diskfreespace", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_DOUBLE),
755 F0("realpath_cache_size", MAY_BE_NULL | MAY_BE_LONG),
756 F1("realpath_cache_get", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ARRAY),
757 F0("mail", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
758 F0("ezmlm_hash", MAY_BE_NULL | MAY_BE_LONG),
759 #ifdef HAVE_SYSLOG_H
760 F0("openlog", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
761 F0("syslog", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
762 F0("closelog", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
763 #endif
764 F0("lcg_value", MAY_BE_DOUBLE),
765 F1("metaphone", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
766 F0("ob_start", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
767 F0("ob_flush", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
768 F0("ob_clean", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
769 F0("ob_end_flush", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
770 F0("ob_end_clean", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
771 F1("ob_get_flush", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
772 F1("ob_get_clean", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
773 F0("ob_get_length", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
774 F0("ob_get_level", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
775 F1("ob_get_status", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
776 FN("ob_get_contents", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
777 F0("ob_implicit_flush", MAY_BE_NULL),
778 F1("ob_list_handlers", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
779 F0("ksort", MAY_BE_FALSE | MAY_BE_TRUE),
780 F0("krsort", MAY_BE_FALSE | MAY_BE_TRUE),
781 F0("natsort", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
782 F0("natcasesort", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
783 F0("asort", MAY_BE_FALSE | MAY_BE_TRUE),
784 F0("arsort", MAY_BE_FALSE | MAY_BE_TRUE),
785 F0("sort", MAY_BE_FALSE | MAY_BE_TRUE),
786 F0("rsort", MAY_BE_FALSE | MAY_BE_TRUE),
787 F0("usort", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
788 F0("uasort", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
789 F0("uksort", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
790 F0("shuffle", MAY_BE_FALSE | MAY_BE_TRUE),
791 F0("array_walk", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
792 F0("array_walk_recursive", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
793 F0("count", MAY_BE_NULL | MAY_BE_LONG),
794 FN("end", UNKNOWN_INFO),
795 FN("prev", UNKNOWN_INFO),
796 FN("next", UNKNOWN_INFO),
797 FN("reset", UNKNOWN_INFO),
798 FN("current", UNKNOWN_INFO),
799 FN("key", MAY_BE_NULL | MAY_BE_LONG | MAY_BE_STRING),
800 FN("min", UNKNOWN_INFO),
801 FN("max", UNKNOWN_INFO),
802 F0("in_array", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
803 FN("array_search", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_STRING),
804 F0("extract", MAY_BE_NULL | MAY_BE_LONG),
805 F1("compact", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
806 F1("array_fill", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ANY),
807 F1("array_fill_keys", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
808 FC("range", zend_range_info),
809 F0("array_multisort", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
810 F0("array_push", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
811 FN("array_pop", UNKNOWN_INFO),
812 FN("array_shift", UNKNOWN_INFO),
813 F0("array_unshift", MAY_BE_NULL | MAY_BE_LONG),
814 F1("array_splice", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
815 F1("array_slice", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
816 F1("array_merge", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
817 F1("array_merge_recursive", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
818 F1("array_replace", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
819 F1("array_replace_recursive", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
820 FN("array_keys", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
821 FN("array_values", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
822 F1("array_count_values", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG),
823 F1("array_column", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
824 F1("array_reverse", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
825 F1("array_reduce", UNKNOWN_INFO),
826 FN("array_pad", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
827 F1("array_flip", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
828 F1("array_change_key_case", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
829 F1("array_rand", UNKNOWN_INFO),
830 FN("array_unique", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
831 F1("array_intersect", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
832 F1("array_intersect_key", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
833 F1("array_intersect_ukey", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
834 F1("array_uintersect", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
835 F1("array_intersect_assoc", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
836 F1("array_uintersect_assoc", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
837 F1("array_intersect_uassoc", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
838 F1("array_uintersect_uassoc", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
839 FN("array_diff", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
840 F1("array_diff_key", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
841 F1("array_diff_ukey", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
842 F1("array_udiff", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
843 F1("array_diff_assoc", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
844 F1("array_udiff_assoc", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
845 F1("array_diff_uassoc", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
846 F1("array_udiff_uassoc", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
847 F0("array_sum", MAY_BE_NULL | MAY_BE_LONG | MAY_BE_DOUBLE),
848 F0("array_product", MAY_BE_NULL | MAY_BE_LONG | MAY_BE_DOUBLE),
849 F1("array_filter", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
850 FN("array_map", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
851 F1("array_chunk", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
852 F1("array_combine", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
853 F0("array_key_exists", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
854 F1("pos", UNKNOWN_INFO),
855 F0("sizeof", MAY_BE_NULL | MAY_BE_LONG),
856 F0("key_exists", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
857 F0("assert", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
858 F1("assert_options", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_OBJECT | MAY_BE_OBJECT),
859 F0("version_compare", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_LONG),
860 #if HAVE_FTOK
861 F0("ftok", MAY_BE_NULL | MAY_BE_LONG),
862 #endif
863 F1("str_rot13", MAY_BE_NULL | MAY_BE_STRING),
864 F1("stream_get_filters", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
865 F0("stream_filter_register", MAY_BE_FALSE | MAY_BE_TRUE),
866 F1("stream_bucket_make_writeable", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
867 F1("stream_bucket_prepend", MAY_BE_FALSE | MAY_BE_OBJECT),
868 F1("stream_bucket_append", MAY_BE_FALSE | MAY_BE_OBJECT),
869 F1("stream_bucket_new", MAY_BE_FALSE | MAY_BE_OBJECT),
870 F0("output_add_rewrite_var", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
871 F0("output_reset_rewrite_vars", MAY_BE_FALSE),
872 F1("sys_get_temp_dir", MAY_BE_NULL | MAY_BE_STRING),
873
874 /* ext/date */
875 F0("strtotime", MAY_BE_FALSE | MAY_BE_LONG),
876 F1("date", MAY_BE_FALSE | MAY_BE_STRING),
877 F0("idate", MAY_BE_FALSE | MAY_BE_LONG),
878 F1("gmdate", MAY_BE_FALSE | MAY_BE_STRING),
879 F0("mktime", MAY_BE_FALSE | MAY_BE_LONG),
880 F0("gmmktime", MAY_BE_FALSE | MAY_BE_LONG),
881 F0("checkdate", MAY_BE_FALSE | MAY_BE_TRUE),
882 #ifdef HAVE_STRFTIME
883 F1("strftime", MAY_BE_FALSE | MAY_BE_STRING),
884 F1("gmstrftime", MAY_BE_FALSE | MAY_BE_STRING),
885 #endif
886 F0("time", MAY_BE_LONG),
887 F1("localtime", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG),
888 F1("getdate", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
889 F1("date_create", MAY_BE_FALSE | MAY_BE_OBJECT),
890 F1("date_create_immutable", MAY_BE_FALSE | MAY_BE_OBJECT),
891 F1("date_create_from_format", MAY_BE_FALSE | MAY_BE_OBJECT),
892 F1("date_create_immutable_from_format", MAY_BE_FALSE | MAY_BE_OBJECT),
893 F1("date_parse", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
894 F1("date_parse_from_format", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
895 F1("date_get_last_errors", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_ARRAY),
896 F1("date_format", MAY_BE_FALSE | MAY_BE_STRING),
897 FN("date_modify", MAY_BE_FALSE | MAY_BE_OBJECT),
898 FN("date_add", MAY_BE_FALSE | MAY_BE_OBJECT),
899 FN("date_sub", MAY_BE_FALSE | MAY_BE_OBJECT),
900 F1("date_timezone_get", MAY_BE_FALSE | MAY_BE_OBJECT),
901 FN("date_timezone_set", MAY_BE_FALSE | MAY_BE_OBJECT),
902 F0("date_offset_get", MAY_BE_FALSE | MAY_BE_LONG),
903 F1("date_diff", MAY_BE_FALSE | MAY_BE_OBJECT),
904 FN("date_time_set", MAY_BE_FALSE | MAY_BE_OBJECT),
905 FN("date_date_set", MAY_BE_FALSE | MAY_BE_OBJECT),
906 FN("date_isodate_set", MAY_BE_FALSE | MAY_BE_OBJECT),
907 FN("date_timestamp_set", MAY_BE_FALSE | MAY_BE_OBJECT),
908 F0("date_timestamp_get", MAY_BE_FALSE | MAY_BE_LONG),
909 F1("timezone_open", MAY_BE_FALSE | MAY_BE_OBJECT),
910 F1("timezone_name_get", MAY_BE_FALSE | MAY_BE_STRING),
911 F1("timezone_name_from_abbr", MAY_BE_FALSE | MAY_BE_STRING),
912 F0("timezone_offset_get", MAY_BE_FALSE | MAY_BE_LONG),
913 F1("timezone_transitions_get", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
914 F1("timezone_location_get", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_DOUBLE | MAY_BE_ARRAY_OF_STRING),
915 F1("timezone_identifiers_list", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
916 F1("timezone_abbreviations_list", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ARRAY),
917 F1("timezone_version_get", MAY_BE_STRING),
918 F1("date_interval_create_from_date_string", MAY_BE_FALSE | MAY_BE_OBJECT),
919 F1("date_interval_format", MAY_BE_FALSE | MAY_BE_STRING),
920 F0("date_default_timezone_set", MAY_BE_FALSE | MAY_BE_TRUE),
921 F1("date_default_timezone_get", MAY_BE_STRING),
922 F1("date_sunrise", MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_STRING),
923 F1("date_sunset", MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_STRING),
924 F1("date_sun_info", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG),
925
926 /* ext/preg */
927 F0("preg_match", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
928 F0("preg_match_all", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
929 FN("preg_replace", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING),
930 FN("preg_replace_callback", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING),
931 F1("preg_filter", MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING),
932 F1("preg_split", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
933 FN("preg_quote", MAY_BE_NULL | MAY_BE_STRING),
934 F1("preg_grep", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY),
935 F0("preg_last_error", MAY_BE_NULL | MAY_BE_LONG),
936
937 /* ext/ereg */
938 F0("ereg", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
939 F1("ereg_replace", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
940 F0("eregi", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
941 F1("eregi_replace", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
942 F1("split", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
943 F1("spliti", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
944 F1("sql_regcase", MAY_BE_NULL | MAY_BE_STRING),
945
946 /* ext/mysql */
947 F1("mysql_connect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
948 F1("mysql_pconnect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
949 F0("mysql_close", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
950 F0("mysql_select_db", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
951 F0("mysql_create_db", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
952 F0("mysql_drop_db", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
953 F1("mysql_query", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_RESOURCE),
954 F1("mysql_unbuffered_query", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_RESOURCE),
955 F1("mysql_db_query", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_RESOURCE),
956 F1("mysql_list_dbs", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
957 F1("mysql_list_tables", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
958 F1("mysql_list_fields", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
959 F1("mysql_list_processes", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
960 F1("mysql_error", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
961 F0("mysql_errno", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
962 F0("mysql_affected_rows", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
963 F0("mysql_insert_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
964 F1("mysql_result", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
965 F0("mysql_num_rows", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
966 F0("mysql_num_fields", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
967 F1("mysql_fetch_row", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ANY),
968 F1("mysql_fetch_array", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
969 F1("mysql_fetch_assoc", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
970 F1("mysql_fetch_object", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
971 F0("mysql_data_seek", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
972 F1("mysql_fetch_lengths", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_LONG),
973 F1("mysql_fetch_field", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
974 F0("mysql_field_seek", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
975 F0("mysql_free_result", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
976 F1("mysql_field_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
977 F1("mysql_field_table", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
978 F0("mysql_field_len", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
979 F1("mysql_field_type", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
980 F1("mysql_field_flags", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
981 F1("mysql_escape_string", MAY_BE_NULL | MAY_BE_STRING),
982 F1("mysql_real_escape_string", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
983 F1("mysql_stat", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
984 F0("mysql_thread_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
985 F1("mysql_client_encoding", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
986 F0("mysql_ping", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
987 F1("mysql_get_client_info", MAY_BE_NULL | MAY_BE_STRING),
988 F1("mysql_get_host_info", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
989 F0("mysql_get_proto_info", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
990 F1("mysql_get_server_info", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
991 F1("mysql_info", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
992 F0("mysql_set_charset", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
993 F1("mysql", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
994 F1("mysql_fieldname", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
995 F1("mysql_fieldtable", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
996 F0("mysql_fieldlen", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
997 F1("mysql_fieldtype", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
998 F1("mysql_fieldflags", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
999 F0("mysql_selectdb", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1000 F0("mysql_createdb", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1001 F0("mysql_dropdb", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1002 F0("mysql_freeresult", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1003 F0("mysql_numfields", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1004 F0("mysql_numrows", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1005 F1("mysql_listdbs", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
1006 F1("mysql_listtables", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
1007 F1("mysql_listfields", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
1008 F1("mysql_db_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1009 F1("mysql_dbname", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1010 F1("mysql_tablename", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1011 F1("mysql_table_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1012
1013 /* ext/curl */
1014 F1("curl_init", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
1015 F1("curl_copy_handle", MAY_BE_NULL | MAY_BE_RESOURCE),
1016 F1("curl_version", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
1017 F0("curl_setopt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1018 F0("curl_setopt_array", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1019 FN("curl_exec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1020 F1("curl_getinfo", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
1021 F1("curl_error", MAY_BE_NULL | MAY_BE_STRING),
1022 F0("curl_errno", MAY_BE_NULL | MAY_BE_LONG),
1023 F0("curl_close", MAY_BE_NULL),
1024 F1("curl_strerror", MAY_BE_NULL | MAY_BE_STRING),
1025 F1("curl_multi_strerror", MAY_BE_NULL | MAY_BE_STRING),
1026 F0("curl_reset", MAY_BE_NULL),
1027 F1("curl_escape", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1028 F1("curl_unescape", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1029 F0("curl_pause", MAY_BE_NULL | MAY_BE_LONG),
1030 F1("curl_multi_init", MAY_BE_NULL | MAY_BE_RESOURCE),
1031 F0("curl_multi_add_handle", MAY_BE_NULL | MAY_BE_LONG),
1032 F0("curl_multi_remove_handle", MAY_BE_NULL | MAY_BE_LONG),
1033 F0("curl_multi_select", MAY_BE_NULL | MAY_BE_LONG),
1034 F0("curl_multi_exec", MAY_BE_NULL | MAY_BE_LONG),
1035 FN("curl_multi_getcontent", MAY_BE_NULL | MAY_BE_STRING),
1036 F1("curl_multi_info_read", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_RESOURCE),
1037 F0("curl_multi_close", MAY_BE_NULL | MAY_BE_FALSE),
1038 F0("curl_multi_setopt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1039 F1("curl_share_init", MAY_BE_NULL | MAY_BE_RESOURCE),
1040 F0("curl_share_close", MAY_BE_NULL),
1041 F0("curl_share_setopt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1042 F1("curl_file_create", MAY_BE_OBJECT),
1043
1044 /* ext/mbstring */
1045 F1("mb_convert_case", MAY_BE_FALSE | MAY_BE_STRING),
1046 F1("mb_strtoupper", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1047 F1("mb_strtolower", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1048 F1("mb_language", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
1049 F1("mb_internal_encoding", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
1050 F1("mb_http_input", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1051 F1("mb_http_output", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
1052 F1("mb_detect_order", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
1053 F1("mb_substitute_character", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_LONG | MAY_BE_STRING),
1054 F0("mb_parse_str", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1055 F1("mb_output_handler", MAY_BE_NULL | MAY_BE_STRING),
1056 F1("mb_preferred_mime_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1057 F0("mb_strlen", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1058 F0("mb_strpos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1059 F0("mb_strrpos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1060 F0("mb_stripos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1061 F0("mb_strripos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1062 F1("mb_strstr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1063 F1("mb_strrchr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1064 F1("mb_stristr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1065 F1("mb_strrichr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1066 F0("mb_substr_count", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1067 F1("mb_substr", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1068 F1("mb_strcut", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1069 F0("mb_strwidth", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1070 F1("mb_strimwidth", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1071 F1("mb_convert_encoding", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
1072 F1("mb_detect_encoding", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1073 F1("mb_list_encodings", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
1074 F1("mb_encoding_aliases", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
1075 F1("mb_convert_kana", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1076 F1("mb_encode_mimeheader", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1077 F1("mb_decode_mimeheader", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1078 F1("mb_convert_variables", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1079 F1("mb_encode_numericentity", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1080 F1("mb_decode_numericentity", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1081 F0("mb_send_mail", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1082 F1("mb_get_info", MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
1083 F0("mb_check_encoding", MAY_BE_FALSE | MAY_BE_TRUE),
1084
1085 F1("mb_regex_encoding", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
1086 F1("mb_regex_set_options", MAY_BE_FALSE | MAY_BE_STRING),
1087 F0("mb_ereg", MAY_BE_FALSE | MAY_BE_LONG),
1088 F0("mb_eregi", MAY_BE_FALSE | MAY_BE_LONG),
1089 F1("mb_ereg_replace", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1090 F1("mb_eregi_replace", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1091 F1("mb_ereg_replace_callback", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1092 F1("mb_split", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
1093 F0("mb_ereg_match", MAY_BE_FALSE | MAY_BE_TRUE),
1094 F0("mb_ereg_search", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1095 F1("mb_ereg_search_pos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_LONG),
1096 F1("mb_ereg_search_regs", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_STRING),
1097 F0("mb_ereg_search_init", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1098 F1("mb_ereg_search_getregs", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_STRING),
1099 F0("mb_ereg_search_getpos", MAY_BE_LONG),
1100 F0("mb_ereg_search_setpos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1101
1102 F0("mbregex_encoding", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1103 F0("mbereg", MAY_BE_FALSE | MAY_BE_LONG),
1104 F0("mberegi", MAY_BE_FALSE | MAY_BE_LONG),
1105 F1("mbereg_replace", MAY_BE_FALSE | MAY_BE_STRING),
1106 F1("mberegi_replace", MAY_BE_FALSE | MAY_BE_STRING),
1107 F1("mbsplit", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
1108 F0("mbereg_match", MAY_BE_FALSE | MAY_BE_TRUE),
1109 F0("mbereg_search", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1110 F1("mbereg_search_pos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_LONG),
1111 F1("mbereg_search_regs", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_STRING),
1112 F0("mbereg_search_init", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1113 F1("mbereg_search_getregs", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_STRING),
1114 F0("mbereg_search_getpos", MAY_BE_LONG),
1115 F0("mbereg_search_setpos", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1116
1117 /* ext/iconv */
1118 F1("iconv", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1119 F1("iconv_get_encoding", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING),
1120 F0("iconv_set_encoding", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1121 F0("iconv_strlen", MAY_BE_FALSE | MAY_BE_LONG),
1122 F1("iconv_substr", MAY_BE_FALSE | MAY_BE_STRING),
1123 F0("iconv_strpos", MAY_BE_FALSE | MAY_BE_LONG),
1124 F0("iconv_strrpos", MAY_BE_FALSE | MAY_BE_LONG),
1125 F1("iconv_mime_encode", MAY_BE_FALSE | MAY_BE_STRING),
1126 F1("iconv_mime_decode", MAY_BE_FALSE | MAY_BE_STRING),
1127 F1("iconv_mime_decode_headers", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
1128
1129 /* ext/json */
1130 F1("json_encode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1131 F1("json_decode", MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
1132 F0("json_last_error", MAY_BE_NULL | MAY_BE_LONG),
1133 F1("json_last_error_msg", MAY_BE_NULL | MAY_BE_STRING),
1134
1135 /* ext/xml */
1136 FN("xml_parser_create", MAY_BE_FALSE | MAY_BE_RESOURCE),
1137 FN("xml_parser_create_ns", MAY_BE_FALSE | MAY_BE_RESOURCE),
1138 F0("xml_set_object", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1139 F0("xml_set_element_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1140 F0("xml_set_character_data_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1141 F0("xml_set_processing_instruction_handler",MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1142 F0("xml_set_default_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1143 F0("xml_set_unparsed_entity_decl_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1144 F0("xml_set_notation_decl_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1145 F0("xml_set_external_entity_ref_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1146 F0("xml_set_start_namespace_decl_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1147 F0("xml_set_end_namespace_decl_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1148 F0("xml_parse", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1149 F0("xml_parse_into_struct", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1150 F0("xml_get_error_code", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1151 F1("xml_error_string", MAY_BE_NULL | MAY_BE_STRING),
1152 F0("xml_get_current_line_number", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1153 F0("xml_get_current_column_number", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1154 F0("xml_get_current_byte_index", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1155 F0("xml_parser_free", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1156 F0("xml_parser_set_option", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1157 F1("xml_parser_get_option", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_STRING),
1158 F1("utf8_encode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1159 F1("utf8_decode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1160
1161 /* ext/zlib */
1162 F0("readgzfile", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1163 F0("gzrewind", MAY_BE_FALSE | MAY_BE_TRUE),
1164 F0("gzclose", MAY_BE_FALSE | MAY_BE_TRUE),
1165 F0("gzeof", MAY_BE_FALSE | MAY_BE_TRUE),
1166 F1("gzgetc", MAY_BE_FALSE | MAY_BE_STRING),
1167 F1("gzgets", MAY_BE_FALSE | MAY_BE_STRING),
1168 F1("gzgetss", MAY_BE_FALSE | MAY_BE_STRING),
1169 F1("gzread", MAY_BE_FALSE | MAY_BE_STRING),
1170 F1("gzopen", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
1171 F0("gzpassthru", MAY_BE_FALSE | MAY_BE_LONG),
1172 F0("gzseek", MAY_BE_FALSE | MAY_BE_LONG),
1173 F0("gztell", MAY_BE_FALSE | MAY_BE_LONG),
1174 F0("gzwrite", MAY_BE_FALSE | MAY_BE_LONG),
1175 F0("gzputs", MAY_BE_FALSE | MAY_BE_LONG),
1176 F1("gzfile", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
1177 F1("gzcompress", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1178 F1("gzuncompress", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1179 F1("gzdeflate", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1180 F1("gzinflate", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1181 F1("gzencode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1182 F1("gzdecode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1183 F1("zlib_encode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1184 F1("zlib_decode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1185 F1("zlib_get_coding_type", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1186 F1("ob_gzhandler", MAY_BE_FALSE | MAY_BE_STRING),
1187
1188 /* ext/hash */
1189 F1("hash", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1190 F1("hash_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1191 F1("hash_hmac", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1192 F1("hash_hmac_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1193 F1("hash_init", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
1194 F0("hash_update", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1195 F0("hash_update_stream", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1196 F0("hash_update_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1197 F1("hash_final", MAY_BE_NULL | MAY_BE_STRING),
1198 F1("hash_copy", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
1199 F1("hash_algos", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
1200 F1("hash_pbkdf2", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1201 F1("mhash_keygen_s2k", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1202 F0("mhash_get_block_size", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
1203 F1("mhash_get_hash_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1204 F0("mhash_count", MAY_BE_NULL | MAY_BE_LONG),
1205 F1("mhash", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1206 };
1207
1208 static HashTable func_info;
1209 int zend_func_info_rid = -1;
1210
zend_get_func_info(const zend_call_info * call_info,const zend_ssa * ssa)1211 uint32_t zend_get_func_info(const zend_call_info *call_info, const zend_ssa *ssa)
1212 {
1213 uint32_t ret = 0;
1214
1215 if (call_info->callee_func->type == ZEND_INTERNAL_FUNCTION) {
1216 func_info_t *info;
1217
1218 if (!call_info->callee_func->common.scope && (info = zend_hash_find_ptr(&func_info, Z_STR_P(CRT_CONSTANT_EX(call_info->caller_op_array, call_info->caller_init_opline->op2, ssa->rt_constants)))) != NULL) {
1219 if (UNEXPECTED(zend_optimizer_is_disabled_func(info->name, info->name_len))) {
1220 ret = MAY_BE_NULL;
1221 } else if (info->info_func) {
1222 ret = info->info_func(call_info, ssa);
1223 } else {
1224 ret = info->info;
1225 }
1226 #if 0
1227 } else {
1228 fprintf(stderr, "Unknown internal function '%s'\n", func->common.function_name);
1229 #endif
1230 }
1231 } else {
1232 // FIXME: the order of functions matters!!!
1233 zend_func_info *info = ZEND_FUNC_INFO((zend_op_array*)call_info->callee_func);
1234 if (info) {
1235 ret = info->return_info.type;
1236 }
1237 }
1238 if (!ret) {
1239 ret = MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF;
1240 if (call_info->callee_func->type == ZEND_INTERNAL_FUNCTION) {
1241 ret |= FUNC_MAY_WARN;
1242 }
1243 if (call_info->callee_func->common.fn_flags & ZEND_ACC_GENERATOR) {
1244 ret = MAY_BE_RC1 | MAY_BE_RCN | MAY_BE_OBJECT;
1245 } else if (call_info->callee_func->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) {
1246 ret |= MAY_BE_REF;
1247 } else {
1248 ret |= MAY_BE_RC1 | MAY_BE_RCN;
1249 }
1250 }
1251 return ret;
1252 }
1253
zend_func_info_startup(void)1254 int zend_func_info_startup(void)
1255 {
1256 zend_extension dummy;
1257 size_t i;
1258
1259 if (zend_func_info_rid == -1) {
1260 zend_func_info_rid = zend_get_resource_handle(&dummy);
1261 if (zend_func_info_rid < 0) {
1262 return FAILURE;
1263 }
1264
1265 zend_hash_init(&func_info, sizeof(func_infos)/sizeof(func_info_t), NULL, NULL, 1);
1266 for (i = 0; i < sizeof(func_infos)/sizeof(func_info_t); i++) {
1267 if (zend_hash_str_add_ptr(&func_info, func_infos[i].name, func_infos[i].name_len, (void**)&func_infos[i]) == NULL) {
1268 fprintf(stderr, "ERROR: Duplicate function info for \"%s\"\n", func_infos[i].name);
1269 }
1270 }
1271 }
1272
1273 return SUCCESS;
1274 }
1275
zend_func_info_shutdown(void)1276 int zend_func_info_shutdown(void)
1277 {
1278 if (zend_func_info_rid != -1) {
1279 zend_hash_destroy(&func_info);
1280 zend_func_info_rid = -1;
1281 }
1282 return SUCCESS;
1283 }
1284
1285 /*
1286 * Local variables:
1287 * tab-width: 4
1288 * c-basic-offset: 4
1289 * indent-tabs-mode: t
1290 * End:
1291 */
1292