xref: /PHP-8.0/ext/bz2/bz2_arginfo.h (revision 9b2a3c1c)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 67689133cbaffce7c139578f5070ecfc8ab6ec55 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_bzopen, 0, 0, 2)
5 	ZEND_ARG_INFO(0, file)
6 	ZEND_ARG_TYPE_INFO(0, mode, IS_STRING, 0)
7 ZEND_END_ARG_INFO()
8 
9 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzread, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
10 	ZEND_ARG_INFO(0, bz)
11 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "1024")
12 ZEND_END_ARG_INFO()
13 
14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzwrite, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
15 	ZEND_ARG_INFO(0, bz)
16 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
17 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
18 ZEND_END_ARG_INFO()
19 
20 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bzflush, 0, 1, _IS_BOOL, 0)
21 	ZEND_ARG_INFO(0, bz)
22 ZEND_END_ARG_INFO()
23 
24 #define arginfo_bzclose arginfo_bzflush
25 
26 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzerrno, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
27 	ZEND_ARG_INFO(0, bz)
28 ZEND_END_ARG_INFO()
29 
30 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzerrstr, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
31 	ZEND_ARG_INFO(0, bz)
32 ZEND_END_ARG_INFO()
33 
34 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzerror, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
35 	ZEND_ARG_INFO(0, bz)
36 ZEND_END_ARG_INFO()
37 
38 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzcompress, 0, 1, MAY_BE_STRING|MAY_BE_LONG)
39 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
40 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, block_size, IS_LONG, 0, "4")
41 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, work_factor, IS_LONG, 0, "0")
42 ZEND_END_ARG_INFO()
43 
44 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_bzdecompress, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
45 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
46 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, use_less_memory, _IS_BOOL, 0, "false")
47 ZEND_END_ARG_INFO()
48 
49 
50 ZEND_FUNCTION(bzopen);
51 ZEND_FUNCTION(bzread);
52 ZEND_FUNCTION(fwrite);
53 ZEND_FUNCTION(fflush);
54 ZEND_FUNCTION(fclose);
55 ZEND_FUNCTION(bzerrno);
56 ZEND_FUNCTION(bzerrstr);
57 ZEND_FUNCTION(bzerror);
58 ZEND_FUNCTION(bzcompress);
59 ZEND_FUNCTION(bzdecompress);
60 
61 
62 static const zend_function_entry ext_functions[] = {
63 	ZEND_FE(bzopen, arginfo_bzopen)
64 	ZEND_FE(bzread, arginfo_bzread)
65 	ZEND_FALIAS(bzwrite, fwrite, arginfo_bzwrite)
66 	ZEND_FALIAS(bzflush, fflush, arginfo_bzflush)
67 	ZEND_FALIAS(bzclose, fclose, arginfo_bzclose)
68 	ZEND_FE(bzerrno, arginfo_bzerrno)
69 	ZEND_FE(bzerrstr, arginfo_bzerrstr)
70 	ZEND_FE(bzerror, arginfo_bzerror)
71 	ZEND_FE(bzcompress, arginfo_bzcompress)
72 	ZEND_FE(bzdecompress, arginfo_bzdecompress)
73 	ZEND_FE_END
74 };
75