xref: /PHP-8.3/ext/dba/dba_arginfo.h (revision b4ec3e9b)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 1a02eaf9da45edb40720620e3beef43fd19dd520 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_popen, 0, 0, 2)
5 	ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
6 	ZEND_ARG_TYPE_INFO(0, mode, IS_STRING, 0)
7 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, handler, IS_STRING, 1, "null")
8 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, permission, IS_LONG, 0, "0644")
9 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, map_size, IS_LONG, 0, "0")
10 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 1, "null")
11 ZEND_END_ARG_INFO()
12 
13 #define arginfo_dba_open arginfo_dba_popen
14 
15 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_close, 0, 1, IS_VOID, 0)
16 	ZEND_ARG_INFO(0, dba)
17 ZEND_END_ARG_INFO()
18 
19 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_exists, 0, 2, _IS_BOOL, 0)
20 	ZEND_ARG_TYPE_MASK(0, key, MAY_BE_STRING|MAY_BE_ARRAY, NULL)
21 	ZEND_ARG_INFO(0, dba)
22 ZEND_END_ARG_INFO()
23 
24 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_fetch, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
25 	ZEND_ARG_TYPE_MASK(0, key, MAY_BE_STRING|MAY_BE_ARRAY, NULL)
26 	ZEND_ARG_INFO(0, dba)
27 	ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, skip, "0")
28 ZEND_END_ARG_INFO()
29 
30 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_key_split, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
31 	ZEND_ARG_TYPE_MASK(0, key, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL, NULL)
32 ZEND_END_ARG_INFO()
33 
34 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_firstkey, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
35 	ZEND_ARG_INFO(0, dba)
36 ZEND_END_ARG_INFO()
37 
38 #define arginfo_dba_nextkey arginfo_dba_firstkey
39 
40 #define arginfo_dba_delete arginfo_dba_exists
41 
42 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_insert, 0, 3, _IS_BOOL, 0)
43 	ZEND_ARG_TYPE_MASK(0, key, MAY_BE_STRING|MAY_BE_ARRAY, NULL)
44 	ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
45 	ZEND_ARG_INFO(0, dba)
46 ZEND_END_ARG_INFO()
47 
48 #define arginfo_dba_replace arginfo_dba_insert
49 
50 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_optimize, 0, 1, _IS_BOOL, 0)
51 	ZEND_ARG_INFO(0, dba)
52 ZEND_END_ARG_INFO()
53 
54 #define arginfo_dba_sync arginfo_dba_optimize
55 
56 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_handlers, 0, 0, IS_ARRAY, 0)
57 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, full_info, _IS_BOOL, 0, "false")
58 ZEND_END_ARG_INFO()
59 
60 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_list, 0, 0, IS_ARRAY, 0)
61 ZEND_END_ARG_INFO()
62 
63 
64 ZEND_FUNCTION(dba_popen);
65 ZEND_FUNCTION(dba_open);
66 ZEND_FUNCTION(dba_close);
67 ZEND_FUNCTION(dba_exists);
68 ZEND_FUNCTION(dba_fetch);
69 ZEND_FUNCTION(dba_key_split);
70 ZEND_FUNCTION(dba_firstkey);
71 ZEND_FUNCTION(dba_nextkey);
72 ZEND_FUNCTION(dba_delete);
73 ZEND_FUNCTION(dba_insert);
74 ZEND_FUNCTION(dba_replace);
75 ZEND_FUNCTION(dba_optimize);
76 ZEND_FUNCTION(dba_sync);
77 ZEND_FUNCTION(dba_handlers);
78 ZEND_FUNCTION(dba_list);
79 
80 
81 static const zend_function_entry ext_functions[] = {
82 	ZEND_FE(dba_popen, arginfo_dba_popen)
83 	ZEND_FE(dba_open, arginfo_dba_open)
84 	ZEND_FE(dba_close, arginfo_dba_close)
85 	ZEND_FE(dba_exists, arginfo_dba_exists)
86 	ZEND_FE(dba_fetch, arginfo_dba_fetch)
87 	ZEND_FE(dba_key_split, arginfo_dba_key_split)
88 	ZEND_FE(dba_firstkey, arginfo_dba_firstkey)
89 	ZEND_FE(dba_nextkey, arginfo_dba_nextkey)
90 	ZEND_FE(dba_delete, arginfo_dba_delete)
91 	ZEND_FE(dba_insert, arginfo_dba_insert)
92 	ZEND_FE(dba_replace, arginfo_dba_replace)
93 	ZEND_FE(dba_optimize, arginfo_dba_optimize)
94 	ZEND_FE(dba_sync, arginfo_dba_sync)
95 	ZEND_FE(dba_handlers, arginfo_dba_handlers)
96 	ZEND_FE(dba_list, arginfo_dba_list)
97 	ZEND_FE_END
98 };
99 
register_dba_symbols(int module_number)100 static void register_dba_symbols(int module_number)
101 {
102 #if defined(DBA_LMDB)
103 	REGISTER_LONG_CONSTANT("DBA_LMDB_USE_SUB_DIR", 0, CONST_PERSISTENT);
104 #endif
105 #if defined(DBA_LMDB)
106 	REGISTER_LONG_CONSTANT("DBA_LMDB_NO_SUB_DIR", MDB_NOSUBDIR, CONST_PERSISTENT);
107 #endif
108 }
109