xref: /PHP-7.4/ext/standard/basic_functions.c (revision 32257ac1)
1e4ca57bbSZak Greant /*
2257de2baSStig Bakken    +----------------------------------------------------------------------+
3d0cb7153SJohannes Schlüter    | PHP Version 7                                                        |
4257de2baSStig Bakken    +----------------------------------------------------------------------+
50cf7de1cSZeev Suraski    | Copyright (c) The PHP Group                                          |
6257de2baSStig Bakken    +----------------------------------------------------------------------+
75bd93221Sfoobar    | This source file is subject to version 3.01 of the PHP license,      |
8c5724cbdSZeev Suraski    | that is bundled with this package in the file LICENSE, and is        |
9f68c7ff2SJames Cox    | available through the world-wide-web at the following url:           |
105bd93221Sfoobar    | http://www.php.net/license/3_01.txt                                  |
11c5724cbdSZeev Suraski    | If you did not receive a copy of the PHP license and are unable to   |
12c5724cbdSZeev Suraski    | obtain it through the world-wide-web, please send a note to          |
13c5724cbdSZeev Suraski    | license@php.net so we can mail you a copy immediately.               |
14257de2baSStig Bakken    +----------------------------------------------------------------------+
1567e0138cSZeev Suraski    | Authors: Andi Gutmans <andi@php.net>                                 |
1667e0138cSZeev Suraski    |          Zeev Suraski <zeev@php.net>                                 |
17257de2baSStig Bakken    +----------------------------------------------------------------------+
18257de2baSStig Bakken  */
19257de2baSStig Bakken 
20257de2baSStig Bakken #include "php.h"
210f65280cSWez Furlong #include "php_streams.h"
22102c6ce4SSascha Schumann #include "php_main.h"
236fb51171SDaniel Beulshausen #include "php_globals.h"
24d221821cSFerenc Kovacs #include "php_variables.h"
25257de2baSStig Bakken #include "php_ini.h"
265b983c94SSascha Schumann #include "php_standard.h"
2742b5521aSfoobar #include "php_math.h"
28e6fbb7baSSara Golemon #include "php_http.h"
29a35df189SThies C. Arntzen #include "php_incomplete_class.h"
302bc631fbSJani Taskinen #include "php_getopt.h"
310c2b366cSColin Viebrock #include "ext/standard/info.h"
3213ff1832SZeev Suraski #include "ext/session/php_session.h"
33257de2baSStig Bakken #include "zend_operators.h"
34af5df4c8SScott MacVicar #include "ext/standard/php_dns.h"
3517b9b2dcSIlia Alshanetsky #include "ext/standard/php_uuencode.h"
367981a294SLeigh #include "ext/standard/php_mt_rand.h"
3708a52157Sfoobar 
38cde7423cSWez Furlong #ifdef PHP_WIN32
39cde7423cSWez Furlong #include "win32/php_win32_globals.h"
40274dad3bSPierre Joye #include "win32/time.h"
41f3f6cd24SAnatol Belski #include "win32/ioutil.h"
42cde7423cSWez Furlong #endif
43cde7423cSWez Furlong 
44b03d3fa5SIlia Alshanetsky typedef struct yy_buffer_state *YY_BUFFER_STATE;
45b03d3fa5SIlia Alshanetsky 
46b03d3fa5SIlia Alshanetsky #include "zend.h"
4709b6f37fSJani Taskinen #include "zend_ini_scanner.h"
48b03d3fa5SIlia Alshanetsky #include "zend_language_scanner.h"
494cf9d270Sfoobar #include <zend_language_parser.h>
50b03d3fa5SIlia Alshanetsky 
511c1e20d7SAndrea Faulds #include "zend_portability.h"
521c1e20d7SAndrea Faulds 
53257de2baSStig Bakken #include <stdarg.h>
54257de2baSStig Bakken #include <stdlib.h>
55257de2baSStig Bakken #include <math.h>
56257de2baSStig Bakken #include <time.h>
57257de2baSStig Bakken #include <stdio.h>
583e867bfdSAnantha Kesari H Y 
59b4892511SJani Taskinen #ifndef PHP_WIN32
60fa6e5df1SDmitry Stogov #include <sys/types.h>
61fa6e5df1SDmitry Stogov #include <sys/stat.h>
62fa6e5df1SDmitry Stogov #endif
63fa6e5df1SDmitry Stogov 
6426203040SPierre Joye #ifndef PHP_WIN32
6526203040SPierre Joye # include <netdb.h>
6626203040SPierre Joye #else
6726203040SPierre Joye #include "win32/inet.h"
6826203040SPierre Joye #endif
6924437ccbSAnantha Kesari H Y 
7083cf6629SRasmus Lerdorf #if HAVE_ARPA_INET_H
7108a52157Sfoobar # include <arpa/inet.h>
7283cf6629SRasmus Lerdorf #endif
7308a52157Sfoobar 
74257de2baSStig Bakken #if HAVE_UNISTD_H
7508a52157Sfoobar # include <unistd.h>
76257de2baSStig Bakken #endif
7708a52157Sfoobar 
78d3ca28f5SPeter Kokot #include <string.h>
79e06836a1SPeter Kokot #include <locale.h>
8008a52157Sfoobar 
81d5cfb03aSSascha Schumann #if HAVE_SYS_MMAN_H
8208a52157Sfoobar # include <sys/mman.h>
83d5cfb03aSSascha Schumann #endif
8408a52157Sfoobar 
85a0371df3SAntony Dovgal #if HAVE_SYS_LOADAVG_H
86a0371df3SAntony Dovgal # include <sys/loadavg.h>
87a0371df3SAntony Dovgal #endif
88a0371df3SAntony Dovgal 
8980bdd19eSZeev Suraski #ifdef PHP_WIN32
9008a52157Sfoobar # include "win32/unistd.h"
91257de2baSStig Bakken #endif
92257de2baSStig Bakken 
931a53f3c5SIlia Alshanetsky #ifndef INADDR_NONE
94c3e3c98eSAnatol Belski #define INADDR_NONE ((zend_ulong) -1)
951a53f3c5SIlia Alshanetsky #endif
961a53f3c5SIlia Alshanetsky 
9708a52157Sfoobar #include "zend_globals.h"
98257de2baSStig Bakken #include "php_globals.h"
993cd0af11SZeev Suraski #include "SAPI.h"
100cd8af6aaSAndrei Zmievski #include "php_ticks.h"
101cd8af6aaSAndrei Zmievski 
1026216eddaSSascha Schumann #ifdef ZTS
10380cc4867SFrank M. Kromann PHPAPI int basic_globals_id;
1046216eddaSSascha Schumann #else
10580cc4867SFrank M. Kromann PHPAPI php_basic_globals basic_globals;
1064b8a100eSThies C. Arntzen #endif
1074b8a100eSThies C. Arntzen 
108cae27179SHartmut Holzgraefe #include "php_fopen_wrappers.h"
1091b53a2d1SWez Furlong #include "streamsfuncs.h"
110cae27179SHartmut Holzgraefe 
111d5bb2e38SIlia Alshanetsky static zend_class_entry *incomplete_class_entry = NULL;
112d5bb2e38SIlia Alshanetsky 
113cd8af6aaSAndrei Zmievski typedef struct _user_tick_function_entry {
11400244babSDmitry Stogov 	zval *arguments;
115cd8af6aaSAndrei Zmievski 	int arg_count;
1169b68acb7SJason Greene 	int calling;
117cd8af6aaSAndrei Zmievski } user_tick_function_entry;
118cd8af6aaSAndrei Zmievski 
119257de2baSStig Bakken /* some prototypes for local functions */
12000244babSDmitry Stogov static void user_shutdown_function_dtor(zval *zv);
121cd8af6aaSAndrei Zmievski static void user_tick_function_dtor(user_tick_function_entry *tick_function_entry);
12208a52157Sfoobar 
123e06665c9SHannes Magnusson /* {{{ arginfo */
124e06665c9SHannes Magnusson /* {{{ main/main.c */
125e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_set_time_limit, 0)
126e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, seconds)
127e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
128e06665c9SHannes Magnusson /* }}} */
129ca378eefSScott MacVicar 
130ca378eefSScott MacVicar /* {{{ main/sapi.c */
131ca378eefSScott MacVicar ZEND_BEGIN_ARG_INFO(arginfo_header_register_callback, 0)
132ca378eefSScott MacVicar 	ZEND_ARG_INFO(0, callback)
133ca378eefSScott MacVicar ZEND_END_ARG_INFO()
134ca378eefSScott MacVicar /* }}} */
135ca378eefSScott MacVicar 
136e06665c9SHannes Magnusson /* {{{ main/output.c */
137e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_ob_start, 0, 0, 0)
138e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, user_function)
139e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, chunk_size)
140e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, flags)
141e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
142e06665c9SHannes Magnusson 
143e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_flush, 0)
144e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
145e06665c9SHannes Magnusson 
146e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_clean, 0)
147e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
148e06665c9SHannes Magnusson 
149e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_end_flush, 0)
150e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
151e06665c9SHannes Magnusson 
152e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_end_clean, 0)
153e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
154e06665c9SHannes Magnusson 
155e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_get_flush, 0)
156e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
157e06665c9SHannes Magnusson 
158e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_get_clean, 0)
159e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
160e06665c9SHannes Magnusson 
161e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_get_contents, 0)
162e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
163e06665c9SHannes Magnusson 
164e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_get_level, 0)
165e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
166e06665c9SHannes Magnusson 
167e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_get_length, 0)
168e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
169e06665c9SHannes Magnusson 
170e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ob_list_handlers, 0)
171e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
172e06665c9SHannes Magnusson 
173e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_ob_get_status, 0, 0, 0)
174e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, full_status)
175e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
176e06665c9SHannes Magnusson 
177e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_ob_implicit_flush, 0, 0, 0)
178e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, flag)
179e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
180e06665c9SHannes Magnusson 
181e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_output_reset_rewrite_vars, 0)
182e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
183e06665c9SHannes Magnusson 
184e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_output_add_rewrite_var, 0)
185e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, name)
186e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, value)
187e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
188e06665c9SHannes Magnusson /* }}} */
189e06665c9SHannes Magnusson /* {{{ main/streams/userspace.c */
190539f67edSDmitry Stogov ZEND_BEGIN_ARG_INFO_EX(arginfo_stream_wrapper_register, 0, 0, 2)
191e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, protocol)
192e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, classname)
193539f67edSDmitry Stogov 	ZEND_ARG_INFO(0, flags)
194e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
195e06665c9SHannes Magnusson 
196e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_stream_wrapper_unregister, 0)
197e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, protocol)
198e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
199e06665c9SHannes Magnusson 
200e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_stream_wrapper_restore, 0)
201e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, protocol)
202e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
203e06665c9SHannes Magnusson /* }}} */
204e06665c9SHannes Magnusson /* {{{ array.c */
205e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_krsort, 0, 0, 1)
206e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
207e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, sort_flags)
208e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
209e06665c9SHannes Magnusson 
210e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_ksort, 0, 0, 1)
211e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
212e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, sort_flags)
213e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
214e06665c9SHannes Magnusson 
215e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_count, 0, 0, 1)
216e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, var)
217e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, mode)
218e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
219e06665c9SHannes Magnusson 
220e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_natsort, 0)
221e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
222e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
223e06665c9SHannes Magnusson 
224e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_natcasesort, 0)
225e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
226e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
227e06665c9SHannes Magnusson 
228e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_asort, 0, 0, 1)
229e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
230e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, sort_flags)
231e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
232e06665c9SHannes Magnusson 
233e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_arsort, 0, 0, 1)
234e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
235e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, sort_flags)
236e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
237e06665c9SHannes Magnusson 
238e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_sort, 0, 0, 1)
239e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
240e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, sort_flags)
241e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
242e06665c9SHannes Magnusson 
243e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_rsort, 0, 0, 1)
244e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
245e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, sort_flags)
246e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
247e06665c9SHannes Magnusson 
248e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_usort, 0)
249e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
250e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, cmp_function)
251e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
252e06665c9SHannes Magnusson 
253e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_uasort, 0)
254e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
255e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, cmp_function)
256e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
257e06665c9SHannes Magnusson 
258e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_uksort, 0)
259e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
260e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, cmp_function)
261e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
262e06665c9SHannes Magnusson 
263e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_end, 0)
264e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg)
265e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
266e06665c9SHannes Magnusson 
267e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_prev, 0)
268e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg)
269e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
270e06665c9SHannes Magnusson 
271e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_next, 0)
272e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg)
273e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
274e06665c9SHannes Magnusson 
275e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_reset, 0)
276e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg)
277e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
278e06665c9SHannes Magnusson 
2790d7a6388SNikita Popov ZEND_BEGIN_ARG_INFO(arginfo_current, 0)
280745504eaSDmitry Stogov 	ZEND_ARG_INFO(0, arg)
281e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
282e06665c9SHannes Magnusson 
2830d7a6388SNikita Popov ZEND_BEGIN_ARG_INFO(arginfo_key, 0)
284745504eaSDmitry Stogov 	ZEND_ARG_INFO(0, arg)
285e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
286e06665c9SHannes Magnusson 
287e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_min, 0, 0, 1)
288417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, args)
289e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
290e06665c9SHannes Magnusson 
291e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_max, 0, 0, 1)
292417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, args)
293e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
294e06665c9SHannes Magnusson 
295e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_walk, 0, 0, 2)
296e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, input) /* ARRAY_INFO(1, arg, 0) */
297e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, funcname)
298e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, userdata)
299e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
300e06665c9SHannes Magnusson 
301e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_walk_recursive, 0, 0, 2)
302e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, input) /* ARRAY_INFO(1, arg, 0) */
303e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, funcname)
304e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, userdata)
305e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
306e06665c9SHannes Magnusson 
307e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_in_array, 0, 0, 2)
308e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, needle)
309e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, haystack) /* ARRAY_INFO(0, haystack, 0) */
310e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, strict)
311e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
312e06665c9SHannes Magnusson 
313e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_search, 0, 0, 2)
314e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, needle)
315e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, haystack) /* ARRAY_INFO(0, haystack, 0) */
316e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, strict)
317e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
318e06665c9SHannes Magnusson 
319e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_extract, 0, 0, 1)
320c5c9fd8bSArnaud Le Blanc 	ZEND_ARG_INFO(ZEND_SEND_PREFER_REF, arg) /* ARRAY_INFO(0, arg, 0) */
321e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, extract_type)
322e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, prefix)
323e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
324e06665c9SHannes Magnusson 
325e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_compact, 0, 0, 1)
326417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, var_names)
327e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
328e06665c9SHannes Magnusson 
329e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_fill, 0)
330e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, start_key)
331e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, num)
332e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, val)
333e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
334e06665c9SHannes Magnusson 
33587c64280SMarcus Boerger ZEND_BEGIN_ARG_INFO(arginfo_array_fill_keys, 0)
33687c64280SMarcus Boerger 	ZEND_ARG_INFO(0, keys) /* ARRAY_INFO(0, keys, 0) */
33787c64280SMarcus Boerger 	ZEND_ARG_INFO(0, val)
33887c64280SMarcus Boerger ZEND_END_ARG_INFO()
33987c64280SMarcus Boerger 
340e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_range, 0, 0, 2)
341e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, low)
342e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, high)
343e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, step)
344e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
345e06665c9SHannes Magnusson 
346e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_shuffle, 0)
347e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
348e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
349e06665c9SHannes Magnusson 
350f7f48643Stimurib ZEND_BEGIN_ARG_INFO_EX(arginfo_array_push, 0, 0, 1)
351e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, stack) /* ARRAY_INFO(1, stack, 0) */
352417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, vars)
353e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
354e06665c9SHannes Magnusson 
355e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_pop, 0)
356e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, stack) /* ARRAY_INFO(1, stack, 0) */
357e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
358e06665c9SHannes Magnusson 
359e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_shift, 0)
360e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, stack) /* ARRAY_INFO(1, stack, 0) */
361e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
362e06665c9SHannes Magnusson 
363f7f48643Stimurib ZEND_BEGIN_ARG_INFO_EX(arginfo_array_unshift, 0, 0, 1)
364e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, stack) /* ARRAY_INFO(1, stack, 0) */
365417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, vars)
366e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
367e06665c9SHannes Magnusson 
368e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_splice, 0, 0, 2)
369e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, arg) /* ARRAY_INFO(1, arg, 0) */
370e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, offset)
371e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, length)
372e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, replacement) /* ARRAY_INFO(0, arg, 1) */
373e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
374e06665c9SHannes Magnusson 
375e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_slice, 0, 0, 2)
376e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(1, arg, 0) */
377e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, offset)
378e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, length)
379e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, preserve_keys)
380e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
381e06665c9SHannes Magnusson 
38277cf3d7bSDik Takken ZEND_BEGIN_ARG_INFO_EX(arginfo_array_merge, 0, 0, 0)
383417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
384e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
385864172d9SAnatol Belski 
38677cf3d7bSDik Takken ZEND_BEGIN_ARG_INFO_EX(arginfo_array_merge_recursive, 0, 0, 0)
387417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
388e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
389e06665c9SHannes Magnusson 
390bb79e576SGabriel Caruso ZEND_BEGIN_ARG_INFO_EX(arginfo_array_replace, 0, 0, 1)
391b9f7b21eSJohannes Schlüter 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg, 0) */
392417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
393b9f7b21eSJohannes Schlüter ZEND_END_ARG_INFO()
394b9f7b21eSJohannes Schlüter 
395bb79e576SGabriel Caruso ZEND_BEGIN_ARG_INFO_EX(arginfo_array_replace_recursive, 0, 0, 1)
396b9f7b21eSJohannes Schlüter 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg, 0) */
397417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
398b9f7b21eSJohannes Schlüter ZEND_END_ARG_INFO()
399b9f7b21eSJohannes Schlüter 
400e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_keys, 0, 0, 1)
401e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
402e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, search_value)
403e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, strict)
404e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
405e06665c9SHannes Magnusson 
40650516a6eSEnno Woortmann ZEND_BEGIN_ARG_INFO(arginfo_array_key_first, 0)
40750516a6eSEnno Woortmann 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
40850516a6eSEnno Woortmann ZEND_END_ARG_INFO()
40950516a6eSEnno Woortmann 
41050516a6eSEnno Woortmann ZEND_BEGIN_ARG_INFO(arginfo_array_key_last, 0)
41150516a6eSEnno Woortmann 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
41250516a6eSEnno Woortmann ZEND_END_ARG_INFO()
41350516a6eSEnno Woortmann 
41450516a6eSEnno Woortmann 
415e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_values, 0)
416e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
417e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
418e06665c9SHannes Magnusson 
419e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_count_values, 0)
420e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
421e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
422e06665c9SHannes Magnusson 
4239035a1edSBen Ramsey ZEND_BEGIN_ARG_INFO_EX(arginfo_array_column, 0, 0, 2)
4249035a1edSBen Ramsey 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
4255bc2854bSBen Ramsey 	ZEND_ARG_INFO(0, column_key)
4265bc2854bSBen Ramsey 	ZEND_ARG_INFO(0, index_key)
4279035a1edSBen Ramsey ZEND_END_ARG_INFO()
4289035a1edSBen Ramsey 
429e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_reverse, 0, 0, 1)
430e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, input) /* ARRAY_INFO(0, arg, 0) */
431e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, preserve_keys)
432e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
433e06665c9SHannes Magnusson 
434e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_pad, 0)
435e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
436e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, pad_size)
437e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, pad_value)
438e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
439e06665c9SHannes Magnusson 
440e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_flip, 0)
441e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
442e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
443e06665c9SHannes Magnusson 
444e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_change_key_case, 0, 0, 1)
445e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, input) /* ARRAY_INFO(0, arg, 0) */
446e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, case)
447e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
448e06665c9SHannes Magnusson 
449e6b46dc2SXinchen Hui ZEND_BEGIN_ARG_INFO_EX(arginfo_array_unique, 0, 0, 1)
450e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
451e6b46dc2SXinchen Hui 	ZEND_ARG_INFO(0, flags)
452e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
453e06665c9SHannes Magnusson 
454e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_intersect_key, 0, 0, 2)
455e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
456417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
457e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
458e06665c9SHannes Magnusson 
459e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_intersect_ukey, 0)
460e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
461e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2) /* ARRAY_INFO(0, arg2, 0) */
462e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_key_compare_func)
463e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
464e06665c9SHannes Magnusson 
465e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_intersect, 0, 0, 2)
466e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
467417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
468e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
469e06665c9SHannes Magnusson 
470e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_uintersect, 0)
471e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
472e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2) /* ARRAY_INFO(0, arg2, 0) */
473e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_data_compare_func)
474e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
475e06665c9SHannes Magnusson 
476e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_intersect_assoc, 0, 0, 2)
477e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
478417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
479e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
480e06665c9SHannes Magnusson 
481e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_uintersect_assoc, 0)
482e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
483e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2) /* ARRAY_INFO(0, arg2, 0) */
484e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_data_compare_func)
485e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
486e06665c9SHannes Magnusson 
487e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_intersect_uassoc, 0)
488e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
489e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2) /* ARRAY_INFO(0, arg2, 0) */
490e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_key_compare_func)
491e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
492e06665c9SHannes Magnusson 
493e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_uintersect_uassoc, 0)
494e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
495e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2) /* ARRAY_INFO(0, arg2, 0) */
496e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_data_compare_func)
497e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_key_compare_func)
498e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
499e06665c9SHannes Magnusson 
500e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_diff_key, 0, 0, 2)
501e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
502417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
503e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
504e06665c9SHannes Magnusson 
505e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_diff_ukey, 0)
506e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
507e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2) /* ARRAY_INFO(0, arg2, 0) */
508e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_key_comp_func)
509e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
510e06665c9SHannes Magnusson 
511e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_diff, 0, 0, 2)
512e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
513417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
514e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
515e06665c9SHannes Magnusson 
516e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_udiff, 0)
517e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1)
518e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2)
519e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_data_comp_func)
520e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
521e06665c9SHannes Magnusson 
522e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_diff_assoc, 0, 0, 2)
523e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
524417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
525e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
526e06665c9SHannes Magnusson 
527e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_diff_uassoc, 0)
528e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
529e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2) /* ARRAY_INFO(0, arg2, 0) */
530e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_data_comp_func)
531e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
532e06665c9SHannes Magnusson 
533e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_udiff_assoc, 0)
534e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
535e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2) /* ARRAY_INFO(0, arg2, 0) */
536e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_key_comp_func)
537e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
538e06665c9SHannes Magnusson 
539e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_udiff_uassoc, 0)
540e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr1) /* ARRAY_INFO(0, arg1, 0) */
541e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arr2) /* ARRAY_INFO(0, arg2, 0) */
542e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_data_comp_func)
543e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback_key_comp_func)
544e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
545e06665c9SHannes Magnusson 
5460d7a6388SNikita Popov ZEND_BEGIN_ARG_INFO_EX(arginfo_array_multisort, 0, 0, 1)
5476910275dSHannes Magnusson 	ZEND_ARG_INFO(ZEND_SEND_PREFER_REF, arr1) /* ARRAY_INFO(0, arg1, 0) */
548a023e032SAlexander Lisachenko 	ZEND_ARG_INFO(ZEND_SEND_PREFER_REF, sort_order)
549a023e032SAlexander Lisachenko 	ZEND_ARG_INFO(ZEND_SEND_PREFER_REF, sort_flags)
550a023e032SAlexander Lisachenko 	ZEND_ARG_VARIADIC_INFO(ZEND_SEND_PREFER_REF, arr2)
551e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
552e06665c9SHannes Magnusson 
553e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_rand, 0, 0, 1)
554e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
555e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, num_req)
556e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
557e06665c9SHannes Magnusson 
558e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_sum, 0)
559e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
560e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
561e06665c9SHannes Magnusson 
562e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_product, 0)
563e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
564e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
565e06665c9SHannes Magnusson 
566e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_reduce, 0, 0, 2)
567e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
568e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback)
569e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, initial)
570e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
571e06665c9SHannes Magnusson 
572e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_filter, 0, 0, 1)
573e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
574e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback)
5756442e49bSdatibbaw     ZEND_ARG_INFO(0, use_keys)
576e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
577e06665c9SHannes Magnusson 
5789fef3430SKalle Sommer Nielsen ZEND_BEGIN_ARG_INFO_EX(arginfo_array_map, 0, 0, 2)
579e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, callback)
580417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, arrays)
581e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
582e06665c9SHannes Magnusson 
583af993553SIlia Alshanetsky ZEND_BEGIN_ARG_INFO(arginfo_array_key_exists, 0)
584af993553SIlia Alshanetsky 	ZEND_ARG_INFO(0, key)
585af993553SIlia Alshanetsky 	ZEND_ARG_INFO(0, search)
586e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
587e06665c9SHannes Magnusson 
588e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_array_chunk, 0, 0, 2)
589e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg) /* ARRAY_INFO(0, arg, 0) */
590e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, size)
591e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, preserve_keys)
592e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
593e06665c9SHannes Magnusson 
594e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_array_combine, 0)
595e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, keys)   /* ARRAY_INFO(0, keys, 0) */
596e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, values) /* ARRAY_INFO(0, values, 0) */
597e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
598e06665c9SHannes Magnusson /* }}} */
599e06665c9SHannes Magnusson /* {{{ basic_functions.c */
600b22f47eeSFelipe Pena ZEND_BEGIN_ARG_INFO(arginfo_get_magic_quotes_gpc, 0)
601b22f47eeSFelipe Pena ZEND_END_ARG_INFO()
602b22f47eeSFelipe Pena 
603b22f47eeSFelipe Pena ZEND_BEGIN_ARG_INFO(arginfo_get_magic_quotes_runtime, 0)
604b22f47eeSFelipe Pena ZEND_END_ARG_INFO()
605b22f47eeSFelipe Pena 
606e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_constant, 0)
607e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, const_name)
608e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
609e06665c9SHannes Magnusson 
610e06665c9SHannes Magnusson #ifdef HAVE_INET_NTOP
611e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_inet_ntop, 0)
612e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, in_addr)
613e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
614e06665c9SHannes Magnusson #endif
615e06665c9SHannes Magnusson 
616e06665c9SHannes Magnusson #ifdef HAVE_INET_PTON
617e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_inet_pton, 0)
618e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, ip_address)
619e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
620e06665c9SHannes Magnusson #endif
621e06665c9SHannes Magnusson 
622e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ip2long, 0)
623e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, ip_address)
624e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
625e06665c9SHannes Magnusson 
626e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_long2ip, 0)
627e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, proper_address)
628e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
629e06665c9SHannes Magnusson 
6300b8cfa6cSGabriel Caruso ZEND_BEGIN_ARG_INFO_EX(arginfo_getenv, 0, 0, 0)
631e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, varname)
6326e16ea41SXinchen Hui 	ZEND_ARG_INFO(0, local_only)
633e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
634e06665c9SHannes Magnusson 
635e06665c9SHannes Magnusson #ifdef HAVE_PUTENV
636e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_putenv, 0)
637e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, setting)
638e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
639e06665c9SHannes Magnusson #endif
640e06665c9SHannes Magnusson 
641e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_getopt, 0, 0, 1)
642e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, options)
643e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, opts) /* ARRAY_INFO(0, opts, 1) */
644e4f7f00aSAdam Saponara 	ZEND_ARG_INFO(1, optind)
645e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
646e06665c9SHannes Magnusson 
647e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_flush, 0)
648e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
649e06665c9SHannes Magnusson 
650e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_sleep, 0)
651e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, seconds)
652e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
653e06665c9SHannes Magnusson 
654e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_usleep, 0)
655e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, micro_seconds)
656e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
657e06665c9SHannes Magnusson 
658e06665c9SHannes Magnusson #if HAVE_NANOSLEEP
659e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_time_nanosleep, 0)
660e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, seconds)
661e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, nanoseconds)
662e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
663e06665c9SHannes Magnusson 
664e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_time_sleep_until, 0)
665e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, timestamp)
666e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
667e06665c9SHannes Magnusson #endif
668e06665c9SHannes Magnusson 
669e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_get_current_user, 0)
670e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
671e06665c9SHannes Magnusson 
672e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_get_cfg_var, 0)
673e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, option_name)
674e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
675e06665c9SHannes Magnusson 
676e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_error_log, 0, 0, 1)
677e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, message)
678e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, message_type)
679e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, destination)
680e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, extra_headers)
681e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
682e06665c9SHannes Magnusson 
68346f21b8aSMichael Wallner ZEND_BEGIN_ARG_INFO_EX(arginfo_error_get_last, 0, 0, 0)
68446f21b8aSMichael Wallner ZEND_END_ARG_INFO()
68546f21b8aSMichael Wallner 
686908542c3SReeze Xia ZEND_BEGIN_ARG_INFO_EX(arginfo_error_clear_last, 0, 0, 0)
687908542c3SReeze Xia ZEND_END_ARG_INFO()
688908542c3SReeze Xia 
689e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_call_user_func, 0, 0, 1)
690e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, function_name)
691417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, parameters)
692e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
693e06665c9SHannes Magnusson 
694b4892511SJani Taskinen ZEND_BEGIN_ARG_INFO_EX(arginfo_call_user_func_array, 0, 0, 2)
695e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, function_name)
696e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, parameters) /* ARRAY_INFO(0, parameters, 1) */
697e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
698e06665c9SHannes Magnusson 
699a1e09451SEtienne Kneuss ZEND_BEGIN_ARG_INFO_EX(arginfo_forward_static_call, 0, 0, 1)
700a1e09451SEtienne Kneuss 	ZEND_ARG_INFO(0, function_name)
701417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, parameters)
702a1e09451SEtienne Kneuss ZEND_END_ARG_INFO()
703a1e09451SEtienne Kneuss 
704a1e09451SEtienne Kneuss ZEND_BEGIN_ARG_INFO_EX(arginfo_forward_static_call_array, 0, 0, 2)
705a1e09451SEtienne Kneuss 	ZEND_ARG_INFO(0, function_name)
706a1e09451SEtienne Kneuss 	ZEND_ARG_INFO(0, parameters) /* ARRAY_INFO(0, parameters, 1) */
707a1e09451SEtienne Kneuss ZEND_END_ARG_INFO()
708a1e09451SEtienne Kneuss 
709417dbfbaSRouven Weßling ZEND_BEGIN_ARG_INFO_EX(arginfo_register_shutdown_function, 0, 0, 1)
710e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, function_name)
711417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, parameters)
712e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
713e06665c9SHannes Magnusson 
714e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_highlight_file, 0, 0, 1)
715e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, file_name)
716e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, return)
717e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
718e06665c9SHannes Magnusson 
719e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_php_strip_whitespace, 0)
720e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, file_name)
721e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
722e06665c9SHannes Magnusson 
723e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_highlight_string, 0, 0, 1)
724e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, string)
725e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, return)
726e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
727e06665c9SHannes Magnusson 
728e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ini_get, 0)
729e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, varname)
730e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
731e06665c9SHannes Magnusson 
732e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_ini_get_all, 0, 0, 0)
733e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, extension)
7347cdf5203SSebastian Bergmann 	ZEND_ARG_INFO(0, details)
735e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
736e06665c9SHannes Magnusson 
737e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ini_set, 0)
738e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, varname)
739e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, newvalue)
740e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
741e06665c9SHannes Magnusson 
742e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_ini_restore, 0)
743e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, varname)
744e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
745e06665c9SHannes Magnusson 
746e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_set_include_path, 0)
747e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, new_include_path)
748e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
749e06665c9SHannes Magnusson 
750e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_get_include_path, 0)
751e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
752e06665c9SHannes Magnusson 
753e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_restore_include_path, 0)
754e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
755e06665c9SHannes Magnusson 
756e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_print_r, 0, 0, 1)
757e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, var)
758e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, return)
759e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
760e06665c9SHannes Magnusson 
761e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_connection_aborted, 0)
762e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
763e06665c9SHannes Magnusson 
764e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_connection_status, 0)
765e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
766e06665c9SHannes Magnusson 
767e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_ignore_user_abort, 0, 0, 0)
768e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, value)
769e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
770e06665c9SHannes Magnusson 
771e06665c9SHannes Magnusson #if HAVE_GETSERVBYNAME
772e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_getservbyname, 0)
773e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, service)
774e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, protocol)
775e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
776e06665c9SHannes Magnusson #endif
777e06665c9SHannes Magnusson 
778e06665c9SHannes Magnusson #if HAVE_GETSERVBYPORT
779e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_getservbyport, 0)
780e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, port)
781e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, protocol)
782e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
783e06665c9SHannes Magnusson #endif
784e06665c9SHannes Magnusson 
785e06665c9SHannes Magnusson #if HAVE_GETPROTOBYNAME
786e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_getprotobyname, 0)
787e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, name)
788e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
789e06665c9SHannes Magnusson #endif
790e06665c9SHannes Magnusson 
791e06665c9SHannes Magnusson #if HAVE_GETPROTOBYNUMBER
792e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_getprotobynumber, 0)
793e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, proto)
794e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
795e06665c9SHannes Magnusson #endif
796e06665c9SHannes Magnusson 
797e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_register_tick_function, 0, 0, 1)
798e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, function_name)
799417dbfbaSRouven Weßling 	ZEND_ARG_VARIADIC_INFO(0, parameters)
800e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
801e06665c9SHannes Magnusson 
802e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_unregister_tick_function, 0)
803e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, function_name)
804e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
805e06665c9SHannes Magnusson 
806e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_is_uploaded_file, 0)
807e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, path)
808e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
809e06665c9SHannes Magnusson 
810e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_move_uploaded_file, 0)
811e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, path)
812e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, new_path)
813e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
814e06665c9SHannes Magnusson 
815e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_parse_ini_file, 0, 0, 1)
816e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, filename)
817e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, process_sections)
81809b6f37fSJani Taskinen 	ZEND_ARG_INFO(0, scanner_mode)
819e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
820e06665c9SHannes Magnusson 
8212276e85fSArnaud Le Blanc ZEND_BEGIN_ARG_INFO_EX(arginfo_parse_ini_string, 0, 0, 1)
8222276e85fSArnaud Le Blanc     ZEND_ARG_INFO(0, ini_string)
8232276e85fSArnaud Le Blanc     ZEND_ARG_INFO(0, process_sections)
8242276e85fSArnaud Le Blanc     ZEND_ARG_INFO(0, scanner_mode)
8252276e85fSArnaud Le Blanc ZEND_END_ARG_INFO()
8262276e85fSArnaud Le Blanc 
82785ad3851SJani Taskinen #if ZEND_DEBUG
82885ad3851SJani Taskinen ZEND_BEGIN_ARG_INFO(arginfo_config_get_hash, 0)
82985ad3851SJani Taskinen ZEND_END_ARG_INFO()
83085ad3851SJani Taskinen #endif
831e06665c9SHannes Magnusson 
832e06665c9SHannes Magnusson #ifdef HAVE_GETLOADAVG
833e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_sys_getloadavg, 0)
834e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
835e06665c9SHannes Magnusson #endif
836e06665c9SHannes Magnusson /* }}} */
837e06665c9SHannes Magnusson /* {{{ assert.c */
83856b0d6f3SRasmus Lerdorf ZEND_BEGIN_ARG_INFO_EX(arginfo_assert, 0, 0, 1)
839e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, assertion)
84056b0d6f3SRasmus Lerdorf 	ZEND_ARG_INFO(0, description)
841e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
842e06665c9SHannes Magnusson 
843e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_assert_options, 0, 0, 1)
844e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, what)
845e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, value)
846e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
847e06665c9SHannes Magnusson /* }}} */
848e06665c9SHannes Magnusson /* {{{ base64.c */
849e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_base64_encode, 0)
850e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, str)
851e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
852e06665c9SHannes Magnusson 
853e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_base64_decode, 0, 0, 1)
854e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, str)
855e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, strict)
856e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
857e06665c9SHannes Magnusson 
858e06665c9SHannes Magnusson /* }}} */
859e06665c9SHannes Magnusson /* {{{ browscap.c */
860e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_get_browser, 0, 0, 0)
861e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, browser_name)
862e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, return_array)
863e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
864e06665c9SHannes Magnusson /* }}} */
865e06665c9SHannes Magnusson /* {{{ crc32.c */
866e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_crc32, 0)
867e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, str)
868e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
869e06665c9SHannes Magnusson 
870e06665c9SHannes Magnusson /* }}} */
871e06665c9SHannes Magnusson /* {{{ crypt.c */
872e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_crypt, 0, 0, 1)
873e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, str)
874e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, salt)
875e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
876e06665c9SHannes Magnusson /* }}} */
877e06665c9SHannes Magnusson /* {{{ cyr_convert.c */
878e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_convert_cyr_string, 0)
879e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, str)
880e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, from)
881e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, to)
882e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
883e06665c9SHannes Magnusson 
884e06665c9SHannes Magnusson /* }}} */
885e06665c9SHannes Magnusson /* {{{ datetime.c */
886e06665c9SHannes Magnusson #if HAVE_STRPTIME
887e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_strptime, 0)
888e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, timestamp)
889e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, format)
890e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
891e06665c9SHannes Magnusson #endif
892e06665c9SHannes Magnusson /* }}} */
893e06665c9SHannes Magnusson /* {{{ dir.c */
894e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_opendir, 0, 0, 1)
895e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, path)
896e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, context)
897e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
898e06665c9SHannes Magnusson 
899e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_dir, 0, 0, 1)
900e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, directory)
901e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, context)
902e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
903e06665c9SHannes Magnusson 
904e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_closedir, 0, 0, 0)
905e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, dir_handle)
906e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
907e06665c9SHannes Magnusson 
908e06665c9SHannes Magnusson #if defined(HAVE_CHROOT) && !defined(ZTS) && ENABLE_CHROOT_FUNC
909e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_chroot, 0)
910e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, directory)
911e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
912e06665c9SHannes Magnusson #endif
913e06665c9SHannes Magnusson 
914e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_chdir, 0)
915e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, directory)
916e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
917e06665c9SHannes Magnusson 
918e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_getcwd, 0)
919e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
920e06665c9SHannes Magnusson 
921e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_rewinddir, 0, 0, 0)
922e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, dir_handle)
923e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
924e06665c9SHannes Magnusson 
925e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_readdir, 0, 0, 0)
926e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, dir_handle)
927e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
928e06665c9SHannes Magnusson 
929e06665c9SHannes Magnusson #ifdef HAVE_GLOB
930e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_glob, 0, 0, 1)
931e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, pattern)
932e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, flags)
933e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
934e06665c9SHannes Magnusson #endif
935e06665c9SHannes Magnusson 
936e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_scandir, 0, 0, 1)
937e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, dir)
938e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, sorting_order)
939e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, context)
940e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
941e06665c9SHannes Magnusson /* }}} */
942e06665c9SHannes Magnusson /* {{{ dns.c */
943e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_gethostbyaddr, 0)
944e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, ip_address)
945e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
946e06665c9SHannes Magnusson 
947e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_gethostbyname, 0)
948e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, hostname)
949e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
950e06665c9SHannes Magnusson 
951e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_gethostbynamel, 0)
952e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, hostname)
953e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
954e06665c9SHannes Magnusson 
955540242dcSIlia Alshanetsky #ifdef HAVE_GETHOSTNAME
956540242dcSIlia Alshanetsky ZEND_BEGIN_ARG_INFO(arginfo_gethostname, 0)
957540242dcSIlia Alshanetsky ZEND_END_ARG_INFO()
958540242dcSIlia Alshanetsky #endif
959540242dcSIlia Alshanetsky 
9607ca5a7d8SSara Golemon ZEND_BEGIN_ARG_INFO(arginfo_net_get_interfaces, 0)
9617ca5a7d8SSara Golemon ZEND_END_ARG_INFO()
9627ca5a7d8SSara Golemon 
963d3bc8bebSKalle Sommer Nielsen #if defined(PHP_WIN32) || HAVE_DNS_SEARCH_FUNC
964e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_check_record, 0, 0, 1)
965e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, host)
966e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, type)
967e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
968e06665c9SHannes Magnusson 
96905065346SScott MacVicar # if defined(PHP_WIN32) || HAVE_FULL_DNS_FUNCS
97091f64706SGustavo André dos Santos Lopes ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_get_record, 0, 0, 1)
971e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, hostname)
972e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, type)
97391f64706SGustavo André dos Santos Lopes 	ZEND_ARG_ARRAY_INFO(1, authns, 1)
97491f64706SGustavo André dos Santos Lopes 	ZEND_ARG_ARRAY_INFO(1, addtl, 1)
97591f64706SGustavo André dos Santos Lopes 	ZEND_ARG_INFO(0, raw)
976e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
977e06665c9SHannes Magnusson 
978e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_get_mx, 0, 0, 2)
979e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, hostname)
980e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, mxhosts) /* ARRAY_INFO(1, mxhosts, 1) */
981e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, weight) /* ARRAY_INFO(1, weight, 1) */
982e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
983e06665c9SHannes Magnusson # endif
9843c967db4SPierre Joye 
985d3bc8bebSKalle Sommer Nielsen #endif /* defined(PHP_WIN32) || HAVE_DNS_SEARCH_FUNC */
986e06665c9SHannes Magnusson /* }}} */
9873c967db4SPierre Joye 
988e06665c9SHannes Magnusson /* {{{ exec.c */
989e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_exec, 0, 0, 1)
990e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, command)
991e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, output) /* ARRAY_INFO(1, output, 1) */
992e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, return_value)
993e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
994e06665c9SHannes Magnusson 
995e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_system, 0, 0, 1)
996e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, command)
997e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, return_value)
998e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
999e06665c9SHannes Magnusson 
1000e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_passthru, 0, 0, 1)
1001e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, command)
1002e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, return_value)
1003e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1004e06665c9SHannes Magnusson 
1005e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_escapeshellcmd, 0)
1006e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, command)
1007e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1008e06665c9SHannes Magnusson 
1009e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_escapeshellarg, 0)
1010e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, arg)
1011e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1012e06665c9SHannes Magnusson 
1013e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_shell_exec, 0)
1014e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, cmd)
1015e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1016e06665c9SHannes Magnusson 
1017e06665c9SHannes Magnusson #ifdef HAVE_NICE
1018e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_proc_nice, 0)
1019e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, priority)
1020e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1021e06665c9SHannes Magnusson #endif
1022e06665c9SHannes Magnusson /* }}} */
1023e06665c9SHannes Magnusson /* {{{ file.c */
1024e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_flock, 0, 0, 2)
1025e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, fp)
1026e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, operation)
1027e06665c9SHannes Magnusson 	ZEND_ARG_INFO(1, wouldblock)
1028e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1029e06665c9SHannes Magnusson 
1030e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_get_meta_tags, 0, 0, 1)
1031e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, filename)
1032e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, use_include_path)
1033e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1034e06665c9SHannes Magnusson 
1035e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_file_get_contents, 0, 0, 1)
1036e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, filename)
1037e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, flags)
1038e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, context)
1039e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, offset)
1040e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, maxlen)
1041e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1042e06665c9SHannes Magnusson 
1043e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_file_put_contents, 0, 0, 2)
1044e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, filename)
1045e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, data)
1046e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, flags)
1047e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, context)
1048e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1049e06665c9SHannes Magnusson 
1050e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_file, 0, 0, 1)
1051e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, filename)
1052e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, flags)
1053e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, context)
1054e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1055e06665c9SHannes Magnusson 
1056e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_tempnam, 0)
1057e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, dir)
1058e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, prefix)
1059e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1060e06665c9SHannes Magnusson 
1061e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_tmpfile, 0)
1062e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1063e06665c9SHannes Magnusson 
1064e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO_EX(arginfo_fopen, 0, 0, 2)
1065e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, filename)
1066e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, mode)
1067e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, use_include_path)
1068e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, context)
1069e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1070e06665c9SHannes Magnusson 
1071e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_fclose, 0)
1072e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, fp)
1073e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1074e06665c9SHannes Magnusson 
1075e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_popen, 0)
1076e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, command)
1077e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, mode)
1078e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1079e06665c9SHannes Magnusson 
1080e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_pclose, 0)
1081e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, fp)
1082e06665c9SHannes Magnusson ZEND_END_ARG_INFO()
1083e06665c9SHannes Magnusson 
1084e06665c9SHannes Magnusson ZEND_BEGIN_ARG_INFO(arginfo_feof, 0)
1085e06665c9SHannes Magnusson 	ZEND_ARG_INFO(0, fp)
1086