xref: /PHP-8.1/ext/pgsql/pgsql_arginfo.h (revision ca219d7d)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 35f41dd74485f921feddc223085dea520f8d816e */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_connect, 0, 1, PgSql\\Connection, MAY_BE_FALSE)
5 	ZEND_ARG_TYPE_INFO(0, connection_string, IS_STRING, 0)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
7 ZEND_END_ARG_INFO()
8 
9 #define arginfo_pg_pconnect arginfo_pg_connect
10 
11 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_connect_poll, 0, 1, IS_LONG, 0)
12 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
13 ZEND_END_ARG_INFO()
14 
15 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_close, 0, 0, _IS_BOOL, 0)
16 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, connection, PgSql\\Connection, 1, "null")
17 ZEND_END_ARG_INFO()
18 
19 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_dbname, 0, 0, IS_STRING, 0)
20 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, connection, PgSql\\Connection, 1, "null")
21 ZEND_END_ARG_INFO()
22 
23 #define arginfo_pg_last_error arginfo_pg_dbname
24 
25 #define arginfo_pg_errormessage arginfo_pg_dbname
26 
27 #define arginfo_pg_options arginfo_pg_dbname
28 
29 #define arginfo_pg_port arginfo_pg_dbname
30 
31 #define arginfo_pg_tty arginfo_pg_dbname
32 
33 #define arginfo_pg_host arginfo_pg_dbname
34 
35 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_version, 0, 0, IS_ARRAY, 0)
36 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, connection, PgSql\\Connection, 1, "null")
37 ZEND_END_ARG_INFO()
38 
39 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_parameter_status, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
40 	ZEND_ARG_INFO(0, connection)
41 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
42 ZEND_END_ARG_INFO()
43 
44 #define arginfo_pg_ping arginfo_pg_close
45 
46 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_query, 0, 1, PgSql\\Result, MAY_BE_FALSE)
47 	ZEND_ARG_INFO(0, connection)
48 	ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
49 ZEND_END_ARG_INFO()
50 
51 #define arginfo_pg_exec arginfo_pg_query
52 
53 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_query_params, 0, 2, PgSql\\Result, MAY_BE_FALSE)
54 	ZEND_ARG_INFO(0, connection)
55 	ZEND_ARG_INFO(0, query)
56 	ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
57 ZEND_END_ARG_INFO()
58 
59 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_prepare, 0, 2, PgSql\\Result, MAY_BE_FALSE)
60 	ZEND_ARG_INFO(0, connection)
61 	ZEND_ARG_TYPE_INFO(0, statement_name, IS_STRING, 0)
62 	ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
63 ZEND_END_ARG_INFO()
64 
65 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_execute, 0, 2, PgSql\\Result, MAY_BE_FALSE)
66 	ZEND_ARG_INFO(0, connection)
67 	ZEND_ARG_INFO(0, statement_name)
68 	ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
69 ZEND_END_ARG_INFO()
70 
71 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_num_rows, 0, 1, IS_LONG, 0)
72 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
73 ZEND_END_ARG_INFO()
74 
75 #define arginfo_pg_numrows arginfo_pg_num_rows
76 
77 #define arginfo_pg_num_fields arginfo_pg_num_rows
78 
79 #define arginfo_pg_numfields arginfo_pg_num_rows
80 
81 #define arginfo_pg_affected_rows arginfo_pg_num_rows
82 
83 #define arginfo_pg_cmdtuples arginfo_pg_num_rows
84 
85 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_last_notice, 0, 1, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_BOOL)
86 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
87 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_NOTICE_LAST")
88 ZEND_END_ARG_INFO()
89 
90 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_field_table, 0, 2, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
91 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
92 	ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
93 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, oid_only, _IS_BOOL, 0, "false")
94 ZEND_END_ARG_INFO()
95 
96 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_field_name, 0, 2, IS_STRING, 0)
97 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
98 	ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
99 ZEND_END_ARG_INFO()
100 
101 #define arginfo_pg_fieldname arginfo_pg_field_name
102 
103 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_field_size, 0, 2, IS_LONG, 0)
104 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
105 	ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
106 ZEND_END_ARG_INFO()
107 
108 #define arginfo_pg_fieldsize arginfo_pg_field_size
109 
110 #define arginfo_pg_field_type arginfo_pg_field_name
111 
112 #define arginfo_pg_fieldtype arginfo_pg_field_name
113 
114 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_field_type_oid, 0, 2, MAY_BE_STRING|MAY_BE_LONG)
115 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
116 	ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
117 ZEND_END_ARG_INFO()
118 
119 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_field_num, 0, 2, IS_LONG, 0)
120 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
121 	ZEND_ARG_TYPE_INFO(0, field, IS_STRING, 0)
122 ZEND_END_ARG_INFO()
123 
124 #define arginfo_pg_fieldnum arginfo_pg_field_num
125 
126 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_result, 0, 2, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
127 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
128 	ZEND_ARG_INFO(0, row)
129 	ZEND_ARG_TYPE_MASK(0, field, MAY_BE_STRING|MAY_BE_LONG, NULL)
130 ZEND_END_ARG_INFO()
131 
132 #define arginfo_pg_result arginfo_pg_fetch_result
133 
134 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_row, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
135 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
136 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row, IS_LONG, 1, "null")
137 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_NUM")
138 ZEND_END_ARG_INFO()
139 
140 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_assoc, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
141 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
142 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row, IS_LONG, 1, "null")
143 ZEND_END_ARG_INFO()
144 
145 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_array, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
146 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
147 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row, IS_LONG, 1, "null")
148 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_BOTH")
149 ZEND_END_ARG_INFO()
150 
151 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_object, 0, 1, MAY_BE_OBJECT|MAY_BE_FALSE)
152 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
153 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row, IS_LONG, 1, "null")
154 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, class, IS_STRING, 0, "\"stdClass\"")
155 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, constructor_args, IS_ARRAY, 0, "[]")
156 ZEND_END_ARG_INFO()
157 
158 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_fetch_all, 0, 1, IS_ARRAY, 0)
159 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
160 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_ASSOC")
161 ZEND_END_ARG_INFO()
162 
163 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_fetch_all_columns, 0, 1, IS_ARRAY, 0)
164 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
165 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, field, IS_LONG, 0, "0")
166 ZEND_END_ARG_INFO()
167 
168 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_result_seek, 0, 2, _IS_BOOL, 0)
169 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
170 	ZEND_ARG_TYPE_INFO(0, row, IS_LONG, 0)
171 ZEND_END_ARG_INFO()
172 
173 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_field_prtlen, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
174 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
175 	ZEND_ARG_INFO(0, row)
176 	ZEND_ARG_TYPE_MASK(0, field, MAY_BE_STRING|MAY_BE_LONG, NULL)
177 ZEND_END_ARG_INFO()
178 
179 #define arginfo_pg_fieldprtlen arginfo_pg_field_prtlen
180 
181 #define arginfo_pg_field_is_null arginfo_pg_field_prtlen
182 
183 #define arginfo_pg_fieldisnull arginfo_pg_field_prtlen
184 
185 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_free_result, 0, 1, _IS_BOOL, 0)
186 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
187 ZEND_END_ARG_INFO()
188 
189 #define arginfo_pg_freeresult arginfo_pg_free_result
190 
191 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_last_oid, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
192 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
193 ZEND_END_ARG_INFO()
194 
195 #define arginfo_pg_getlastoid arginfo_pg_last_oid
196 
197 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_trace, 0, 1, _IS_BOOL, 0)
198 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
199 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_STRING, 0, "\"w\"")
200 	ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, connection, PgSql\\Connection, 1, "null")
201 ZEND_END_ARG_INFO()
202 
203 #define arginfo_pg_untrace arginfo_pg_close
204 
205 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_lo_create, 0, 0, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
206 	ZEND_ARG_INFO(0, connection)
207 	ZEND_ARG_INFO(0, oid)
208 ZEND_END_ARG_INFO()
209 
210 #define arginfo_pg_locreate arginfo_pg_lo_create
211 
212 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_unlink, 0, 1, _IS_BOOL, 0)
213 	ZEND_ARG_INFO(0, connection)
214 	ZEND_ARG_INFO(0, oid)
215 ZEND_END_ARG_INFO()
216 
217 #define arginfo_pg_lounlink arginfo_pg_lo_unlink
218 
219 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_lo_open, 0, 1, PgSql\\Lob, MAY_BE_FALSE)
220 	ZEND_ARG_INFO(0, connection)
221 	ZEND_ARG_INFO(0, oid)
222 	ZEND_ARG_TYPE_INFO(0, mode, IS_STRING, 0)
223 ZEND_END_ARG_INFO()
224 
225 #define arginfo_pg_loopen arginfo_pg_lo_open
226 
227 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_close, 0, 1, _IS_BOOL, 0)
228 	ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
229 ZEND_END_ARG_INFO()
230 
231 #define arginfo_pg_loclose arginfo_pg_lo_close
232 
233 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_lo_read, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
234 	ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
235 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "8192")
236 ZEND_END_ARG_INFO()
237 
238 #define arginfo_pg_loread arginfo_pg_lo_read
239 
240 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_lo_write, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
241 	ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
242 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
243 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
244 ZEND_END_ARG_INFO()
245 
246 #define arginfo_pg_lowrite arginfo_pg_lo_write
247 
248 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_read_all, 0, 1, IS_LONG, 0)
249 	ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
250 ZEND_END_ARG_INFO()
251 
252 #define arginfo_pg_loreadall arginfo_pg_lo_read_all
253 
254 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_lo_import, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
255 	ZEND_ARG_INFO(0, connection)
256 	ZEND_ARG_INFO(0, filename)
257 	ZEND_ARG_INFO(0, oid)
258 ZEND_END_ARG_INFO()
259 
260 #define arginfo_pg_loimport arginfo_pg_lo_import
261 
262 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_export, 0, 1, _IS_BOOL, 0)
263 	ZEND_ARG_INFO(0, connection)
264 	ZEND_ARG_INFO(0, oid)
265 	ZEND_ARG_INFO(0, filename)
266 ZEND_END_ARG_INFO()
267 
268 #define arginfo_pg_loexport arginfo_pg_lo_export
269 
270 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_seek, 0, 2, _IS_BOOL, 0)
271 	ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
272 	ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
273 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, whence, IS_LONG, 0, "SEEK_CUR")
274 ZEND_END_ARG_INFO()
275 
276 #define arginfo_pg_lo_tell arginfo_pg_lo_read_all
277 
278 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_truncate, 0, 2, _IS_BOOL, 0)
279 	ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
280 	ZEND_ARG_TYPE_INFO(0, size, IS_LONG, 0)
281 ZEND_END_ARG_INFO()
282 
283 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_set_error_verbosity, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
284 	ZEND_ARG_INFO(0, connection)
285 	ZEND_ARG_TYPE_INFO(0, verbosity, IS_LONG, 0)
286 ZEND_END_ARG_INFO()
287 
288 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_set_client_encoding, 0, 1, IS_LONG, 0)
289 	ZEND_ARG_INFO(0, connection)
290 	ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
291 ZEND_END_ARG_INFO()
292 
293 #define arginfo_pg_setclientencoding arginfo_pg_set_client_encoding
294 
295 #define arginfo_pg_client_encoding arginfo_pg_dbname
296 
297 #define arginfo_pg_clientencoding arginfo_pg_dbname
298 
299 #define arginfo_pg_end_copy arginfo_pg_close
300 
301 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_put_line, 0, 1, _IS_BOOL, 0)
302 	ZEND_ARG_INFO(0, connection)
303 	ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
304 ZEND_END_ARG_INFO()
305 
306 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_copy_to, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
307 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
308 	ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
309 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, separator, IS_STRING, 0, "\"\\t\"")
310 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, null_as, IS_STRING, 0, "\"\\\\\\\\N\"")
311 ZEND_END_ARG_INFO()
312 
313 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_copy_from, 0, 3, _IS_BOOL, 0)
314 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
315 	ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
316 	ZEND_ARG_TYPE_INFO(0, rows, IS_ARRAY, 0)
317 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, separator, IS_STRING, 0, "\"\\t\"")
318 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, null_as, IS_STRING, 0, "\"\\\\\\\\N\"")
319 ZEND_END_ARG_INFO()
320 
321 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_escape_string, 0, 1, IS_STRING, 0)
322 	ZEND_ARG_INFO(0, connection)
323 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
324 ZEND_END_ARG_INFO()
325 
326 #define arginfo_pg_escape_bytea arginfo_pg_escape_string
327 
328 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_unescape_bytea, 0, 1, IS_STRING, 0)
329 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
330 ZEND_END_ARG_INFO()
331 
332 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_escape_literal, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
333 	ZEND_ARG_INFO(0, connection)
334 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
335 ZEND_END_ARG_INFO()
336 
337 #define arginfo_pg_escape_identifier arginfo_pg_escape_literal
338 
339 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_result_error, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
340 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
341 ZEND_END_ARG_INFO()
342 
343 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_result_error_field, 0, 2, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
344 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
345 	ZEND_ARG_TYPE_INFO(0, field_code, IS_LONG, 0)
346 ZEND_END_ARG_INFO()
347 
348 #define arginfo_pg_connection_status arginfo_pg_connect_poll
349 
350 #define arginfo_pg_transaction_status arginfo_pg_connect_poll
351 
352 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_connection_reset, 0, 1, _IS_BOOL, 0)
353 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
354 ZEND_END_ARG_INFO()
355 
356 #define arginfo_pg_cancel_query arginfo_pg_connection_reset
357 
358 #define arginfo_pg_connection_busy arginfo_pg_connection_reset
359 
360 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_query, 0, 2, MAY_BE_LONG|MAY_BE_BOOL)
361 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
362 	ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
363 ZEND_END_ARG_INFO()
364 
365 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_query_params, 0, 3, MAY_BE_LONG|MAY_BE_BOOL)
366 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
367 	ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
368 	ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
369 ZEND_END_ARG_INFO()
370 
371 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_prepare, 0, 3, MAY_BE_LONG|MAY_BE_BOOL)
372 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
373 	ZEND_ARG_TYPE_INFO(0, statement_name, IS_STRING, 0)
374 	ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
375 ZEND_END_ARG_INFO()
376 
377 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_execute, 0, 3, MAY_BE_LONG|MAY_BE_BOOL)
378 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
379 	ZEND_ARG_TYPE_INFO(0, statement_name, IS_STRING, 0)
380 	ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
381 ZEND_END_ARG_INFO()
382 
383 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_get_result, 0, 1, PgSql\\Result, MAY_BE_FALSE)
384 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
385 ZEND_END_ARG_INFO()
386 
387 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_result_status, 0, 1, MAY_BE_STRING|MAY_BE_LONG)
388 	ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
389 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_STATUS_LONG")
390 ZEND_END_ARG_INFO()
391 
392 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_get_notify, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
393 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
394 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_ASSOC")
395 ZEND_END_ARG_INFO()
396 
397 #define arginfo_pg_get_pid arginfo_pg_connect_poll
398 
399 ZEND_BEGIN_ARG_INFO_EX(arginfo_pg_socket, 0, 0, 1)
400 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
401 ZEND_END_ARG_INFO()
402 
403 #define arginfo_pg_consume_input arginfo_pg_connection_reset
404 
405 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_flush, 0, 1, MAY_BE_LONG|MAY_BE_BOOL)
406 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
407 ZEND_END_ARG_INFO()
408 
409 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_meta_data, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
410 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
411 	ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
412 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extended, _IS_BOOL, 0, "false")
413 ZEND_END_ARG_INFO()
414 
415 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_convert, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE)
416 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
417 	ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
418 	ZEND_ARG_TYPE_INFO(0, values, IS_ARRAY, 0)
419 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
420 ZEND_END_ARG_INFO()
421 
422 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_insert, 0, 3, PgSql\\Result, MAY_BE_STRING|MAY_BE_BOOL)
423 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
424 	ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
425 	ZEND_ARG_TYPE_INFO(0, values, IS_ARRAY, 0)
426 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "PGSQL_DML_EXEC")
427 ZEND_END_ARG_INFO()
428 
429 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_update, 0, 4, MAY_BE_STRING|MAY_BE_BOOL)
430 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
431 	ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
432 	ZEND_ARG_TYPE_INFO(0, values, IS_ARRAY, 0)
433 	ZEND_ARG_TYPE_INFO(0, conditions, IS_ARRAY, 0)
434 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "PGSQL_DML_EXEC")
435 ZEND_END_ARG_INFO()
436 
437 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_delete, 0, 3, MAY_BE_STRING|MAY_BE_BOOL)
438 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
439 	ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
440 	ZEND_ARG_TYPE_INFO(0, conditions, IS_ARRAY, 0)
441 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "PGSQL_DML_EXEC")
442 ZEND_END_ARG_INFO()
443 
444 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_select, 0, 3, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
445 	ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
446 	ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
447 	ZEND_ARG_TYPE_INFO(0, conditions, IS_ARRAY, 0)
448 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "PGSQL_DML_EXEC")
449 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_ASSOC")
450 ZEND_END_ARG_INFO()
451 
452 
453 ZEND_FUNCTION(pg_connect);
454 ZEND_FUNCTION(pg_pconnect);
455 ZEND_FUNCTION(pg_connect_poll);
456 ZEND_FUNCTION(pg_close);
457 ZEND_FUNCTION(pg_dbname);
458 ZEND_FUNCTION(pg_last_error);
459 ZEND_FUNCTION(pg_options);
460 ZEND_FUNCTION(pg_port);
461 ZEND_FUNCTION(pg_tty);
462 ZEND_FUNCTION(pg_host);
463 ZEND_FUNCTION(pg_version);
464 ZEND_FUNCTION(pg_parameter_status);
465 ZEND_FUNCTION(pg_ping);
466 ZEND_FUNCTION(pg_query);
467 ZEND_FUNCTION(pg_query_params);
468 ZEND_FUNCTION(pg_prepare);
469 ZEND_FUNCTION(pg_execute);
470 ZEND_FUNCTION(pg_num_rows);
471 ZEND_FUNCTION(pg_num_fields);
472 ZEND_FUNCTION(pg_affected_rows);
473 ZEND_FUNCTION(pg_last_notice);
474 ZEND_FUNCTION(pg_field_table);
475 ZEND_FUNCTION(pg_field_name);
476 ZEND_FUNCTION(pg_field_size);
477 ZEND_FUNCTION(pg_field_type);
478 ZEND_FUNCTION(pg_field_type_oid);
479 ZEND_FUNCTION(pg_field_num);
480 ZEND_FUNCTION(pg_fetch_result);
481 ZEND_FUNCTION(pg_fetch_row);
482 ZEND_FUNCTION(pg_fetch_assoc);
483 ZEND_FUNCTION(pg_fetch_array);
484 ZEND_FUNCTION(pg_fetch_object);
485 ZEND_FUNCTION(pg_fetch_all);
486 ZEND_FUNCTION(pg_fetch_all_columns);
487 ZEND_FUNCTION(pg_result_seek);
488 ZEND_FUNCTION(pg_field_prtlen);
489 ZEND_FUNCTION(pg_field_is_null);
490 ZEND_FUNCTION(pg_free_result);
491 ZEND_FUNCTION(pg_last_oid);
492 ZEND_FUNCTION(pg_trace);
493 ZEND_FUNCTION(pg_untrace);
494 ZEND_FUNCTION(pg_lo_create);
495 ZEND_FUNCTION(pg_lo_unlink);
496 ZEND_FUNCTION(pg_lo_open);
497 ZEND_FUNCTION(pg_lo_close);
498 ZEND_FUNCTION(pg_lo_read);
499 ZEND_FUNCTION(pg_lo_write);
500 ZEND_FUNCTION(pg_lo_read_all);
501 ZEND_FUNCTION(pg_lo_import);
502 ZEND_FUNCTION(pg_lo_export);
503 ZEND_FUNCTION(pg_lo_seek);
504 ZEND_FUNCTION(pg_lo_tell);
505 ZEND_FUNCTION(pg_lo_truncate);
506 ZEND_FUNCTION(pg_set_error_verbosity);
507 ZEND_FUNCTION(pg_set_client_encoding);
508 ZEND_FUNCTION(pg_client_encoding);
509 ZEND_FUNCTION(pg_end_copy);
510 ZEND_FUNCTION(pg_put_line);
511 ZEND_FUNCTION(pg_copy_to);
512 ZEND_FUNCTION(pg_copy_from);
513 ZEND_FUNCTION(pg_escape_string);
514 ZEND_FUNCTION(pg_escape_bytea);
515 ZEND_FUNCTION(pg_unescape_bytea);
516 ZEND_FUNCTION(pg_escape_literal);
517 ZEND_FUNCTION(pg_escape_identifier);
518 ZEND_FUNCTION(pg_result_error);
519 ZEND_FUNCTION(pg_result_error_field);
520 ZEND_FUNCTION(pg_connection_status);
521 ZEND_FUNCTION(pg_transaction_status);
522 ZEND_FUNCTION(pg_connection_reset);
523 ZEND_FUNCTION(pg_cancel_query);
524 ZEND_FUNCTION(pg_connection_busy);
525 ZEND_FUNCTION(pg_send_query);
526 ZEND_FUNCTION(pg_send_query_params);
527 ZEND_FUNCTION(pg_send_prepare);
528 ZEND_FUNCTION(pg_send_execute);
529 ZEND_FUNCTION(pg_get_result);
530 ZEND_FUNCTION(pg_result_status);
531 ZEND_FUNCTION(pg_get_notify);
532 ZEND_FUNCTION(pg_get_pid);
533 ZEND_FUNCTION(pg_socket);
534 ZEND_FUNCTION(pg_consume_input);
535 ZEND_FUNCTION(pg_flush);
536 ZEND_FUNCTION(pg_meta_data);
537 ZEND_FUNCTION(pg_convert);
538 ZEND_FUNCTION(pg_insert);
539 ZEND_FUNCTION(pg_update);
540 ZEND_FUNCTION(pg_delete);
541 ZEND_FUNCTION(pg_select);
542 
543 
544 static const zend_function_entry ext_functions[] = {
545 	ZEND_FE(pg_connect, arginfo_pg_connect)
546 	ZEND_FE(pg_pconnect, arginfo_pg_pconnect)
547 	ZEND_FE(pg_connect_poll, arginfo_pg_connect_poll)
548 	ZEND_FE(pg_close, arginfo_pg_close)
549 	ZEND_FE(pg_dbname, arginfo_pg_dbname)
550 	ZEND_FE(pg_last_error, arginfo_pg_last_error)
551 	ZEND_DEP_FALIAS(pg_errormessage, pg_last_error, arginfo_pg_errormessage)
552 	ZEND_FE(pg_options, arginfo_pg_options)
553 	ZEND_FE(pg_port, arginfo_pg_port)
554 	ZEND_FE(pg_tty, arginfo_pg_tty)
555 	ZEND_FE(pg_host, arginfo_pg_host)
556 	ZEND_FE(pg_version, arginfo_pg_version)
557 	ZEND_FE(pg_parameter_status, arginfo_pg_parameter_status)
558 	ZEND_FE(pg_ping, arginfo_pg_ping)
559 	ZEND_FE(pg_query, arginfo_pg_query)
560 	ZEND_FALIAS(pg_exec, pg_query, arginfo_pg_exec)
561 	ZEND_FE(pg_query_params, arginfo_pg_query_params)
562 	ZEND_FE(pg_prepare, arginfo_pg_prepare)
563 	ZEND_FE(pg_execute, arginfo_pg_execute)
564 	ZEND_FE(pg_num_rows, arginfo_pg_num_rows)
565 	ZEND_DEP_FALIAS(pg_numrows, pg_num_rows, arginfo_pg_numrows)
566 	ZEND_FE(pg_num_fields, arginfo_pg_num_fields)
567 	ZEND_DEP_FALIAS(pg_numfields, pg_num_fields, arginfo_pg_numfields)
568 	ZEND_FE(pg_affected_rows, arginfo_pg_affected_rows)
569 	ZEND_DEP_FALIAS(pg_cmdtuples, pg_affected_rows, arginfo_pg_cmdtuples)
570 	ZEND_FE(pg_last_notice, arginfo_pg_last_notice)
571 	ZEND_FE(pg_field_table, arginfo_pg_field_table)
572 	ZEND_FE(pg_field_name, arginfo_pg_field_name)
573 	ZEND_DEP_FALIAS(pg_fieldname, pg_field_name, arginfo_pg_fieldname)
574 	ZEND_FE(pg_field_size, arginfo_pg_field_size)
575 	ZEND_DEP_FALIAS(pg_fieldsize, pg_field_size, arginfo_pg_fieldsize)
576 	ZEND_FE(pg_field_type, arginfo_pg_field_type)
577 	ZEND_DEP_FALIAS(pg_fieldtype, pg_field_type, arginfo_pg_fieldtype)
578 	ZEND_FE(pg_field_type_oid, arginfo_pg_field_type_oid)
579 	ZEND_FE(pg_field_num, arginfo_pg_field_num)
580 	ZEND_DEP_FALIAS(pg_fieldnum, pg_field_num, arginfo_pg_fieldnum)
581 	ZEND_FE(pg_fetch_result, arginfo_pg_fetch_result)
582 	ZEND_DEP_FALIAS(pg_result, pg_fetch_result, arginfo_pg_result)
583 	ZEND_FE(pg_fetch_row, arginfo_pg_fetch_row)
584 	ZEND_FE(pg_fetch_assoc, arginfo_pg_fetch_assoc)
585 	ZEND_FE(pg_fetch_array, arginfo_pg_fetch_array)
586 	ZEND_FE(pg_fetch_object, arginfo_pg_fetch_object)
587 	ZEND_FE(pg_fetch_all, arginfo_pg_fetch_all)
588 	ZEND_FE(pg_fetch_all_columns, arginfo_pg_fetch_all_columns)
589 	ZEND_FE(pg_result_seek, arginfo_pg_result_seek)
590 	ZEND_FE(pg_field_prtlen, arginfo_pg_field_prtlen)
591 	ZEND_DEP_FALIAS(pg_fieldprtlen, pg_field_prtlen, arginfo_pg_fieldprtlen)
592 	ZEND_FE(pg_field_is_null, arginfo_pg_field_is_null)
593 	ZEND_DEP_FALIAS(pg_fieldisnull, pg_field_is_null, arginfo_pg_fieldisnull)
594 	ZEND_FE(pg_free_result, arginfo_pg_free_result)
595 	ZEND_DEP_FALIAS(pg_freeresult, pg_free_result, arginfo_pg_freeresult)
596 	ZEND_FE(pg_last_oid, arginfo_pg_last_oid)
597 	ZEND_DEP_FALIAS(pg_getlastoid, pg_last_oid, arginfo_pg_getlastoid)
598 	ZEND_FE(pg_trace, arginfo_pg_trace)
599 	ZEND_FE(pg_untrace, arginfo_pg_untrace)
600 	ZEND_FE(pg_lo_create, arginfo_pg_lo_create)
601 	ZEND_DEP_FALIAS(pg_locreate, pg_lo_create, arginfo_pg_locreate)
602 	ZEND_FE(pg_lo_unlink, arginfo_pg_lo_unlink)
603 	ZEND_DEP_FALIAS(pg_lounlink, pg_lo_unlink, arginfo_pg_lounlink)
604 	ZEND_FE(pg_lo_open, arginfo_pg_lo_open)
605 	ZEND_DEP_FALIAS(pg_loopen, pg_lo_open, arginfo_pg_loopen)
606 	ZEND_FE(pg_lo_close, arginfo_pg_lo_close)
607 	ZEND_DEP_FALIAS(pg_loclose, pg_lo_close, arginfo_pg_loclose)
608 	ZEND_FE(pg_lo_read, arginfo_pg_lo_read)
609 	ZEND_DEP_FALIAS(pg_loread, pg_lo_read, arginfo_pg_loread)
610 	ZEND_FE(pg_lo_write, arginfo_pg_lo_write)
611 	ZEND_DEP_FALIAS(pg_lowrite, pg_lo_write, arginfo_pg_lowrite)
612 	ZEND_FE(pg_lo_read_all, arginfo_pg_lo_read_all)
613 	ZEND_DEP_FALIAS(pg_loreadall, pg_lo_read_all, arginfo_pg_loreadall)
614 	ZEND_FE(pg_lo_import, arginfo_pg_lo_import)
615 	ZEND_DEP_FALIAS(pg_loimport, pg_lo_import, arginfo_pg_loimport)
616 	ZEND_FE(pg_lo_export, arginfo_pg_lo_export)
617 	ZEND_DEP_FALIAS(pg_loexport, pg_lo_export, arginfo_pg_loexport)
618 	ZEND_FE(pg_lo_seek, arginfo_pg_lo_seek)
619 	ZEND_FE(pg_lo_tell, arginfo_pg_lo_tell)
620 	ZEND_FE(pg_lo_truncate, arginfo_pg_lo_truncate)
621 	ZEND_FE(pg_set_error_verbosity, arginfo_pg_set_error_verbosity)
622 	ZEND_FE(pg_set_client_encoding, arginfo_pg_set_client_encoding)
623 	ZEND_DEP_FALIAS(pg_setclientencoding, pg_set_client_encoding, arginfo_pg_setclientencoding)
624 	ZEND_FE(pg_client_encoding, arginfo_pg_client_encoding)
625 	ZEND_DEP_FALIAS(pg_clientencoding, pg_client_encoding, arginfo_pg_clientencoding)
626 	ZEND_FE(pg_end_copy, arginfo_pg_end_copy)
627 	ZEND_FE(pg_put_line, arginfo_pg_put_line)
628 	ZEND_FE(pg_copy_to, arginfo_pg_copy_to)
629 	ZEND_FE(pg_copy_from, arginfo_pg_copy_from)
630 	ZEND_FE(pg_escape_string, arginfo_pg_escape_string)
631 	ZEND_FE(pg_escape_bytea, arginfo_pg_escape_bytea)
632 	ZEND_FE(pg_unescape_bytea, arginfo_pg_unescape_bytea)
633 	ZEND_FE(pg_escape_literal, arginfo_pg_escape_literal)
634 	ZEND_FE(pg_escape_identifier, arginfo_pg_escape_identifier)
635 	ZEND_FE(pg_result_error, arginfo_pg_result_error)
636 	ZEND_FE(pg_result_error_field, arginfo_pg_result_error_field)
637 	ZEND_FE(pg_connection_status, arginfo_pg_connection_status)
638 	ZEND_FE(pg_transaction_status, arginfo_pg_transaction_status)
639 	ZEND_FE(pg_connection_reset, arginfo_pg_connection_reset)
640 	ZEND_FE(pg_cancel_query, arginfo_pg_cancel_query)
641 	ZEND_FE(pg_connection_busy, arginfo_pg_connection_busy)
642 	ZEND_FE(pg_send_query, arginfo_pg_send_query)
643 	ZEND_FE(pg_send_query_params, arginfo_pg_send_query_params)
644 	ZEND_FE(pg_send_prepare, arginfo_pg_send_prepare)
645 	ZEND_FE(pg_send_execute, arginfo_pg_send_execute)
646 	ZEND_FE(pg_get_result, arginfo_pg_get_result)
647 	ZEND_FE(pg_result_status, arginfo_pg_result_status)
648 	ZEND_FE(pg_get_notify, arginfo_pg_get_notify)
649 	ZEND_FE(pg_get_pid, arginfo_pg_get_pid)
650 	ZEND_FE(pg_socket, arginfo_pg_socket)
651 	ZEND_FE(pg_consume_input, arginfo_pg_consume_input)
652 	ZEND_FE(pg_flush, arginfo_pg_flush)
653 	ZEND_FE(pg_meta_data, arginfo_pg_meta_data)
654 	ZEND_FE(pg_convert, arginfo_pg_convert)
655 	ZEND_FE(pg_insert, arginfo_pg_insert)
656 	ZEND_FE(pg_update, arginfo_pg_update)
657 	ZEND_FE(pg_delete, arginfo_pg_delete)
658 	ZEND_FE(pg_select, arginfo_pg_select)
659 	ZEND_FE_END
660 };
661 
662 
663 static const zend_function_entry class_PgSql_Connection_methods[] = {
664 	ZEND_FE_END
665 };
666 
667 
668 static const zend_function_entry class_PgSql_Result_methods[] = {
669 	ZEND_FE_END
670 };
671 
672 
673 static const zend_function_entry class_PgSql_Lob_methods[] = {
674 	ZEND_FE_END
675 };
676 
register_class_PgSql_Connection(void)677 static zend_class_entry *register_class_PgSql_Connection(void)
678 {
679 	zend_class_entry ce, *class_entry;
680 
681 	INIT_NS_CLASS_ENTRY(ce, "PgSql", "Connection", class_PgSql_Connection_methods);
682 	class_entry = zend_register_internal_class_ex(&ce, NULL);
683 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
684 
685 	return class_entry;
686 }
687 
register_class_PgSql_Result(void)688 static zend_class_entry *register_class_PgSql_Result(void)
689 {
690 	zend_class_entry ce, *class_entry;
691 
692 	INIT_NS_CLASS_ENTRY(ce, "PgSql", "Result", class_PgSql_Result_methods);
693 	class_entry = zend_register_internal_class_ex(&ce, NULL);
694 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
695 
696 	return class_entry;
697 }
698 
register_class_PgSql_Lob(void)699 static zend_class_entry *register_class_PgSql_Lob(void)
700 {
701 	zend_class_entry ce, *class_entry;
702 
703 	INIT_NS_CLASS_ENTRY(ce, "PgSql", "Lob", class_PgSql_Lob_methods);
704 	class_entry = zend_register_internal_class_ex(&ce, NULL);
705 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
706 
707 	return class_entry;
708 }
709