xref: /PHP-8.1/ext/pdo/pdo_stmt_arginfo.h (revision 2378f357)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: adcbda7b6763141981700bec5d8c5b739f8de767 */
3 
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_bindColumn, 0, 2, _IS_BOOL, 0)
5 	ZEND_ARG_TYPE_MASK(0, column, MAY_BE_STRING|MAY_BE_LONG, NULL)
6 	ZEND_ARG_TYPE_INFO(1, var, IS_MIXED, 0)
7 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "PDO::PARAM_STR")
8 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxLength, IS_LONG, 0, "0")
9 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, driverOptions, IS_MIXED, 0, "null")
10 ZEND_END_ARG_INFO()
11 
12 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_bindParam, 0, 2, _IS_BOOL, 0)
13 	ZEND_ARG_TYPE_MASK(0, param, MAY_BE_STRING|MAY_BE_LONG, NULL)
14 	ZEND_ARG_TYPE_INFO(1, var, IS_MIXED, 0)
15 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "PDO::PARAM_STR")
16 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxLength, IS_LONG, 0, "0")
17 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, driverOptions, IS_MIXED, 0, "null")
18 ZEND_END_ARG_INFO()
19 
20 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_bindValue, 0, 2, _IS_BOOL, 0)
21 	ZEND_ARG_TYPE_MASK(0, param, MAY_BE_STRING|MAY_BE_LONG, NULL)
22 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
23 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "PDO::PARAM_STR")
24 ZEND_END_ARG_INFO()
25 
26 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_closeCursor, 0, 0, _IS_BOOL, 0)
27 ZEND_END_ARG_INFO()
28 
29 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_columnCount, 0, 0, IS_LONG, 0)
30 ZEND_END_ARG_INFO()
31 
32 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_debugDumpParams, 0, 0, _IS_BOOL, 1)
33 ZEND_END_ARG_INFO()
34 
35 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_errorCode, 0, 0, IS_STRING, 1)
36 ZEND_END_ARG_INFO()
37 
38 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_errorInfo, 0, 0, IS_ARRAY, 0)
39 ZEND_END_ARG_INFO()
40 
41 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_execute, 0, 0, _IS_BOOL, 0)
42 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, params, IS_ARRAY, 1, "null")
43 ZEND_END_ARG_INFO()
44 
45 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_fetch, 0, 0, IS_MIXED, 0)
46 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PDO::FETCH_DEFAULT")
47 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, cursorOrientation, IS_LONG, 0, "PDO::FETCH_ORI_NEXT")
48 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, cursorOffset, IS_LONG, 0, "0")
49 ZEND_END_ARG_INFO()
50 
51 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_fetchAll, 0, 0, IS_ARRAY, 0)
52 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PDO::FETCH_DEFAULT")
53 	ZEND_ARG_VARIADIC_TYPE_INFO(0, args, IS_MIXED, 0)
54 ZEND_END_ARG_INFO()
55 
56 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_fetchColumn, 0, 0, IS_MIXED, 0)
57 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, column, IS_LONG, 0, "0")
58 ZEND_END_ARG_INFO()
59 
60 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_PDOStatement_fetchObject, 0, 0, MAY_BE_OBJECT|MAY_BE_FALSE)
61 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, class, IS_STRING, 1, "\"stdClass\"")
62 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, constructorArgs, IS_ARRAY, 0, "[]")
63 ZEND_END_ARG_INFO()
64 
65 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_getAttribute, 0, 1, IS_MIXED, 0)
66 	ZEND_ARG_TYPE_INFO(0, name, IS_LONG, 0)
67 ZEND_END_ARG_INFO()
68 
69 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_PDOStatement_getColumnMeta, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
70 	ZEND_ARG_TYPE_INFO(0, column, IS_LONG, 0)
71 ZEND_END_ARG_INFO()
72 
73 #define arginfo_class_PDOStatement_nextRowset arginfo_class_PDOStatement_closeCursor
74 
75 #define arginfo_class_PDOStatement_rowCount arginfo_class_PDOStatement_columnCount
76 
77 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_setAttribute, 0, 2, _IS_BOOL, 0)
78 	ZEND_ARG_TYPE_INFO(0, attribute, IS_LONG, 0)
79 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
80 ZEND_END_ARG_INFO()
81 
82 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_setFetchMode, 0, 0, 1)
83 	ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
84 	ZEND_ARG_VARIADIC_TYPE_INFO(0, args, IS_MIXED, 0)
85 ZEND_END_ARG_INFO()
86 
87 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_PDOStatement_getIterator, 0, 0, Iterator, 0)
88 ZEND_END_ARG_INFO()
89 
90 
91 ZEND_METHOD(PDOStatement, bindColumn);
92 ZEND_METHOD(PDOStatement, bindParam);
93 ZEND_METHOD(PDOStatement, bindValue);
94 ZEND_METHOD(PDOStatement, closeCursor);
95 ZEND_METHOD(PDOStatement, columnCount);
96 ZEND_METHOD(PDOStatement, debugDumpParams);
97 ZEND_METHOD(PDOStatement, errorCode);
98 ZEND_METHOD(PDOStatement, errorInfo);
99 ZEND_METHOD(PDOStatement, execute);
100 ZEND_METHOD(PDOStatement, fetch);
101 ZEND_METHOD(PDOStatement, fetchAll);
102 ZEND_METHOD(PDOStatement, fetchColumn);
103 ZEND_METHOD(PDOStatement, fetchObject);
104 ZEND_METHOD(PDOStatement, getAttribute);
105 ZEND_METHOD(PDOStatement, getColumnMeta);
106 ZEND_METHOD(PDOStatement, nextRowset);
107 ZEND_METHOD(PDOStatement, rowCount);
108 ZEND_METHOD(PDOStatement, setAttribute);
109 ZEND_METHOD(PDOStatement, setFetchMode);
110 ZEND_METHOD(PDOStatement, getIterator);
111 
112 
113 static const zend_function_entry class_PDOStatement_methods[] = {
114 	ZEND_ME(PDOStatement, bindColumn, arginfo_class_PDOStatement_bindColumn, ZEND_ACC_PUBLIC)
115 	ZEND_ME(PDOStatement, bindParam, arginfo_class_PDOStatement_bindParam, ZEND_ACC_PUBLIC)
116 	ZEND_ME(PDOStatement, bindValue, arginfo_class_PDOStatement_bindValue, ZEND_ACC_PUBLIC)
117 	ZEND_ME(PDOStatement, closeCursor, arginfo_class_PDOStatement_closeCursor, ZEND_ACC_PUBLIC)
118 	ZEND_ME(PDOStatement, columnCount, arginfo_class_PDOStatement_columnCount, ZEND_ACC_PUBLIC)
119 	ZEND_ME(PDOStatement, debugDumpParams, arginfo_class_PDOStatement_debugDumpParams, ZEND_ACC_PUBLIC)
120 	ZEND_ME(PDOStatement, errorCode, arginfo_class_PDOStatement_errorCode, ZEND_ACC_PUBLIC)
121 	ZEND_ME(PDOStatement, errorInfo, arginfo_class_PDOStatement_errorInfo, ZEND_ACC_PUBLIC)
122 	ZEND_ME(PDOStatement, execute, arginfo_class_PDOStatement_execute, ZEND_ACC_PUBLIC)
123 	ZEND_ME(PDOStatement, fetch, arginfo_class_PDOStatement_fetch, ZEND_ACC_PUBLIC)
124 	ZEND_ME(PDOStatement, fetchAll, arginfo_class_PDOStatement_fetchAll, ZEND_ACC_PUBLIC)
125 	ZEND_ME(PDOStatement, fetchColumn, arginfo_class_PDOStatement_fetchColumn, ZEND_ACC_PUBLIC)
126 	ZEND_ME(PDOStatement, fetchObject, arginfo_class_PDOStatement_fetchObject, ZEND_ACC_PUBLIC)
127 	ZEND_ME(PDOStatement, getAttribute, arginfo_class_PDOStatement_getAttribute, ZEND_ACC_PUBLIC)
128 	ZEND_ME(PDOStatement, getColumnMeta, arginfo_class_PDOStatement_getColumnMeta, ZEND_ACC_PUBLIC)
129 	ZEND_ME(PDOStatement, nextRowset, arginfo_class_PDOStatement_nextRowset, ZEND_ACC_PUBLIC)
130 	ZEND_ME(PDOStatement, rowCount, arginfo_class_PDOStatement_rowCount, ZEND_ACC_PUBLIC)
131 	ZEND_ME(PDOStatement, setAttribute, arginfo_class_PDOStatement_setAttribute, ZEND_ACC_PUBLIC)
132 	ZEND_ME(PDOStatement, setFetchMode, arginfo_class_PDOStatement_setFetchMode, ZEND_ACC_PUBLIC)
133 	ZEND_ME(PDOStatement, getIterator, arginfo_class_PDOStatement_getIterator, ZEND_ACC_PUBLIC)
134 	ZEND_FE_END
135 };
136 
137 
138 static const zend_function_entry class_PDORow_methods[] = {
139 	ZEND_FE_END
140 };
141 
register_class_PDOStatement(zend_class_entry * class_entry_IteratorAggregate)142 static zend_class_entry *register_class_PDOStatement(zend_class_entry *class_entry_IteratorAggregate)
143 {
144 	zend_class_entry ce, *class_entry;
145 
146 	INIT_CLASS_ENTRY(ce, "PDOStatement", class_PDOStatement_methods);
147 	class_entry = zend_register_internal_class_ex(&ce, NULL);
148 	class_entry->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE;
149 	zend_class_implements(class_entry, 1, class_entry_IteratorAggregate);
150 
151 	zval property_queryString_default_value;
152 	ZVAL_UNDEF(&property_queryString_default_value);
153 	zend_string *property_queryString_name = zend_string_init("queryString", sizeof("queryString") - 1, 1);
154 	zend_declare_typed_property(class_entry, property_queryString_name, &property_queryString_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
155 	zend_string_release(property_queryString_name);
156 
157 	return class_entry;
158 }
159 
register_class_PDORow(void)160 static zend_class_entry *register_class_PDORow(void)
161 {
162 	zend_class_entry ce, *class_entry;
163 
164 	INIT_CLASS_ENTRY(ce, "PDORow", class_PDORow_methods);
165 	class_entry = zend_register_internal_class_ex(&ce, NULL);
166 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NOT_SERIALIZABLE;
167 
168 	zval property_queryString_default_value;
169 	ZVAL_UNDEF(&property_queryString_default_value);
170 	zend_string *property_queryString_name = zend_string_init("queryString", sizeof("queryString") - 1, 1);
171 	zend_declare_typed_property(class_entry, property_queryString_name, &property_queryString_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
172 	zend_string_release(property_queryString_name);
173 
174 	return class_entry;
175 }
176