xref: /php-src/ext/pdo/pdo_stmt_arginfo.h (revision 53cb8967)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 6a5b332ba4bfeceaca6aad734d38dabb66d82c97 */
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_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDOStatement_setFetchMode, 0, 1, IS_TRUE, 0)
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 ZEND_METHOD(PDOStatement, bindColumn);
91 ZEND_METHOD(PDOStatement, bindParam);
92 ZEND_METHOD(PDOStatement, bindValue);
93 ZEND_METHOD(PDOStatement, closeCursor);
94 ZEND_METHOD(PDOStatement, columnCount);
95 ZEND_METHOD(PDOStatement, debugDumpParams);
96 ZEND_METHOD(PDOStatement, errorCode);
97 ZEND_METHOD(PDOStatement, errorInfo);
98 ZEND_METHOD(PDOStatement, execute);
99 ZEND_METHOD(PDOStatement, fetch);
100 ZEND_METHOD(PDOStatement, fetchAll);
101 ZEND_METHOD(PDOStatement, fetchColumn);
102 ZEND_METHOD(PDOStatement, fetchObject);
103 ZEND_METHOD(PDOStatement, getAttribute);
104 ZEND_METHOD(PDOStatement, getColumnMeta);
105 ZEND_METHOD(PDOStatement, nextRowset);
106 ZEND_METHOD(PDOStatement, rowCount);
107 ZEND_METHOD(PDOStatement, setAttribute);
108 ZEND_METHOD(PDOStatement, setFetchMode);
109 ZEND_METHOD(PDOStatement, getIterator);
110 
111 static const zend_function_entry class_PDOStatement_methods[] = {
112 	ZEND_ME(PDOStatement, bindColumn, arginfo_class_PDOStatement_bindColumn, ZEND_ACC_PUBLIC)
113 	ZEND_ME(PDOStatement, bindParam, arginfo_class_PDOStatement_bindParam, ZEND_ACC_PUBLIC)
114 	ZEND_ME(PDOStatement, bindValue, arginfo_class_PDOStatement_bindValue, ZEND_ACC_PUBLIC)
115 	ZEND_ME(PDOStatement, closeCursor, arginfo_class_PDOStatement_closeCursor, ZEND_ACC_PUBLIC)
116 	ZEND_ME(PDOStatement, columnCount, arginfo_class_PDOStatement_columnCount, ZEND_ACC_PUBLIC)
117 	ZEND_ME(PDOStatement, debugDumpParams, arginfo_class_PDOStatement_debugDumpParams, ZEND_ACC_PUBLIC)
118 	ZEND_ME(PDOStatement, errorCode, arginfo_class_PDOStatement_errorCode, ZEND_ACC_PUBLIC)
119 	ZEND_ME(PDOStatement, errorInfo, arginfo_class_PDOStatement_errorInfo, ZEND_ACC_PUBLIC)
120 	ZEND_ME(PDOStatement, execute, arginfo_class_PDOStatement_execute, ZEND_ACC_PUBLIC)
121 	ZEND_ME(PDOStatement, fetch, arginfo_class_PDOStatement_fetch, ZEND_ACC_PUBLIC)
122 	ZEND_ME(PDOStatement, fetchAll, arginfo_class_PDOStatement_fetchAll, ZEND_ACC_PUBLIC)
123 	ZEND_ME(PDOStatement, fetchColumn, arginfo_class_PDOStatement_fetchColumn, ZEND_ACC_PUBLIC)
124 	ZEND_ME(PDOStatement, fetchObject, arginfo_class_PDOStatement_fetchObject, ZEND_ACC_PUBLIC)
125 	ZEND_ME(PDOStatement, getAttribute, arginfo_class_PDOStatement_getAttribute, ZEND_ACC_PUBLIC)
126 	ZEND_ME(PDOStatement, getColumnMeta, arginfo_class_PDOStatement_getColumnMeta, ZEND_ACC_PUBLIC)
127 	ZEND_ME(PDOStatement, nextRowset, arginfo_class_PDOStatement_nextRowset, ZEND_ACC_PUBLIC)
128 	ZEND_ME(PDOStatement, rowCount, arginfo_class_PDOStatement_rowCount, ZEND_ACC_PUBLIC)
129 	ZEND_ME(PDOStatement, setAttribute, arginfo_class_PDOStatement_setAttribute, ZEND_ACC_PUBLIC)
130 	ZEND_ME(PDOStatement, setFetchMode, arginfo_class_PDOStatement_setFetchMode, ZEND_ACC_PUBLIC)
131 	ZEND_ME(PDOStatement, getIterator, arginfo_class_PDOStatement_getIterator, ZEND_ACC_PUBLIC)
132 	ZEND_FE_END
133 };
134 
register_class_PDOStatement(zend_class_entry * class_entry_IteratorAggregate)135 static zend_class_entry *register_class_PDOStatement(zend_class_entry *class_entry_IteratorAggregate)
136 {
137 	zend_class_entry ce, *class_entry;
138 
139 	INIT_CLASS_ENTRY(ce, "PDOStatement", class_PDOStatement_methods);
140 	class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_NOT_SERIALIZABLE);
141 	zend_class_implements(class_entry, 1, class_entry_IteratorAggregate);
142 
143 	zval property_queryString_default_value;
144 	ZVAL_UNDEF(&property_queryString_default_value);
145 	zend_string *property_queryString_name = zend_string_init("queryString", sizeof("queryString") - 1, 1);
146 	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));
147 	zend_string_release(property_queryString_name);
148 
149 	return class_entry;
150 }
151 
register_class_PDORow(void)152 static zend_class_entry *register_class_PDORow(void)
153 {
154 	zend_class_entry ce, *class_entry;
155 
156 	INIT_CLASS_ENTRY(ce, "PDORow", NULL);
157 	class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NOT_SERIALIZABLE);
158 
159 	zval property_queryString_default_value;
160 	ZVAL_UNDEF(&property_queryString_default_value);
161 	zend_string *property_queryString_name = zend_string_init("queryString", sizeof("queryString") - 1, 1);
162 	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));
163 	zend_string_release(property_queryString_name);
164 
165 	return class_entry;
166 }
167