1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 824e5aa07fd6753b5bc7821a39ccb76768f2470b */
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_TRUE, 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 #define arginfo_pg_jit arginfo_pg_version
40
41 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_parameter_status, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
42 ZEND_ARG_INFO(0, connection)
43 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
44 ZEND_END_ARG_INFO()
45
46 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_ping, 0, 0, _IS_BOOL, 0)
47 ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, connection, PgSql\\Connection, 1, "null")
48 ZEND_END_ARG_INFO()
49
50 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_query, 0, 1, PgSql\\Result, MAY_BE_FALSE)
51 ZEND_ARG_INFO(0, connection)
52 ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
53 ZEND_END_ARG_INFO()
54
55 #define arginfo_pg_exec arginfo_pg_query
56
57 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_query_params, 0, 2, PgSql\\Result, MAY_BE_FALSE)
58 ZEND_ARG_INFO(0, connection)
59 ZEND_ARG_INFO(0, query)
60 ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
61 ZEND_END_ARG_INFO()
62
63 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_prepare, 0, 2, PgSql\\Result, MAY_BE_FALSE)
64 ZEND_ARG_INFO(0, connection)
65 ZEND_ARG_TYPE_INFO(0, statement_name, IS_STRING, 0)
66 ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
67 ZEND_END_ARG_INFO()
68
69 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_execute, 0, 2, PgSql\\Result, MAY_BE_FALSE)
70 ZEND_ARG_INFO(0, connection)
71 ZEND_ARG_INFO(0, statement_name)
72 ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
73 ZEND_END_ARG_INFO()
74
75 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_num_rows, 0, 1, IS_LONG, 0)
76 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
77 ZEND_END_ARG_INFO()
78
79 #define arginfo_pg_numrows arginfo_pg_num_rows
80
81 #define arginfo_pg_num_fields arginfo_pg_num_rows
82
83 #define arginfo_pg_numfields arginfo_pg_num_rows
84
85 #define arginfo_pg_affected_rows arginfo_pg_num_rows
86
87 #define arginfo_pg_cmdtuples arginfo_pg_num_rows
88
89 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_last_notice, 0, 1, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_BOOL)
90 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
91 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_NOTICE_LAST")
92 ZEND_END_ARG_INFO()
93
94 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_field_table, 0, 2, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
95 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
96 ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
97 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, oid_only, _IS_BOOL, 0, "false")
98 ZEND_END_ARG_INFO()
99
100 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_field_name, 0, 2, IS_STRING, 0)
101 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
102 ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
103 ZEND_END_ARG_INFO()
104
105 #define arginfo_pg_fieldname arginfo_pg_field_name
106
107 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_field_size, 0, 2, IS_LONG, 0)
108 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
109 ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
110 ZEND_END_ARG_INFO()
111
112 #define arginfo_pg_fieldsize arginfo_pg_field_size
113
114 #define arginfo_pg_field_type arginfo_pg_field_name
115
116 #define arginfo_pg_fieldtype arginfo_pg_field_name
117
118 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_field_type_oid, 0, 2, MAY_BE_STRING|MAY_BE_LONG)
119 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
120 ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
121 ZEND_END_ARG_INFO()
122
123 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_field_num, 0, 2, IS_LONG, 0)
124 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
125 ZEND_ARG_TYPE_INFO(0, field, IS_STRING, 0)
126 ZEND_END_ARG_INFO()
127
128 #define arginfo_pg_fieldnum arginfo_pg_field_num
129
130 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_result, 0, 2, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
131 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
132 ZEND_ARG_INFO(0, row)
133 ZEND_ARG_TYPE_MASK(0, field, MAY_BE_STRING|MAY_BE_LONG, NULL)
134 ZEND_END_ARG_INFO()
135
136 #define arginfo_pg_result arginfo_pg_fetch_result
137
138 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_row, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
139 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
140 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row, IS_LONG, 1, "null")
141 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_NUM")
142 ZEND_END_ARG_INFO()
143
144 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_assoc, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
145 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
146 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row, IS_LONG, 1, "null")
147 ZEND_END_ARG_INFO()
148
149 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_array, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
150 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
151 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row, IS_LONG, 1, "null")
152 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_BOTH")
153 ZEND_END_ARG_INFO()
154
155 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_fetch_object, 0, 1, MAY_BE_OBJECT|MAY_BE_FALSE)
156 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
157 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, row, IS_LONG, 1, "null")
158 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, class, IS_STRING, 0, "\"stdClass\"")
159 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, constructor_args, IS_ARRAY, 0, "[]")
160 ZEND_END_ARG_INFO()
161
162 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_fetch_all, 0, 1, IS_ARRAY, 0)
163 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
164 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_ASSOC")
165 ZEND_END_ARG_INFO()
166
167 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_fetch_all_columns, 0, 1, IS_ARRAY, 0)
168 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
169 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, field, IS_LONG, 0, "0")
170 ZEND_END_ARG_INFO()
171
172 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_result_seek, 0, 2, _IS_BOOL, 0)
173 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
174 ZEND_ARG_TYPE_INFO(0, row, IS_LONG, 0)
175 ZEND_END_ARG_INFO()
176
177 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_field_prtlen, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
178 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
179 ZEND_ARG_INFO(0, row)
180 ZEND_ARG_TYPE_MASK(0, field, MAY_BE_STRING|MAY_BE_LONG, NULL)
181 ZEND_END_ARG_INFO()
182
183 #define arginfo_pg_fieldprtlen arginfo_pg_field_prtlen
184
185 #define arginfo_pg_field_is_null arginfo_pg_field_prtlen
186
187 #define arginfo_pg_fieldisnull arginfo_pg_field_prtlen
188
189 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_free_result, 0, 1, _IS_BOOL, 0)
190 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
191 ZEND_END_ARG_INFO()
192
193 #define arginfo_pg_freeresult arginfo_pg_free_result
194
195 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_last_oid, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
196 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
197 ZEND_END_ARG_INFO()
198
199 #define arginfo_pg_getlastoid arginfo_pg_last_oid
200
201 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_trace, 0, 1, _IS_BOOL, 0)
202 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
203 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_STRING, 0, "\"w\"")
204 ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, connection, PgSql\\Connection, 1, "null")
205 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, trace_mode, IS_LONG, 0, "0")
206 ZEND_END_ARG_INFO()
207
208 #define arginfo_pg_untrace arginfo_pg_close
209
210 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_lo_create, 0, 0, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
211 ZEND_ARG_INFO(0, connection)
212 ZEND_ARG_INFO(0, oid)
213 ZEND_END_ARG_INFO()
214
215 #define arginfo_pg_locreate arginfo_pg_lo_create
216
217 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_unlink, 0, 1, _IS_BOOL, 0)
218 ZEND_ARG_INFO(0, connection)
219 ZEND_ARG_INFO(0, oid)
220 ZEND_END_ARG_INFO()
221
222 #define arginfo_pg_lounlink arginfo_pg_lo_unlink
223
224 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_lo_open, 0, 1, PgSql\\Lob, MAY_BE_FALSE)
225 ZEND_ARG_INFO(0, connection)
226 ZEND_ARG_INFO(0, oid)
227 ZEND_ARG_TYPE_INFO(0, mode, IS_STRING, 0)
228 ZEND_END_ARG_INFO()
229
230 #define arginfo_pg_loopen arginfo_pg_lo_open
231
232 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_close, 0, 1, _IS_BOOL, 0)
233 ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
234 ZEND_END_ARG_INFO()
235
236 #define arginfo_pg_loclose arginfo_pg_lo_close
237
238 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_lo_read, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
239 ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
240 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "8192")
241 ZEND_END_ARG_INFO()
242
243 #define arginfo_pg_loread arginfo_pg_lo_read
244
245 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_lo_write, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
246 ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
247 ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
248 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
249 ZEND_END_ARG_INFO()
250
251 #define arginfo_pg_lowrite arginfo_pg_lo_write
252
253 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_read_all, 0, 1, IS_LONG, 0)
254 ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
255 ZEND_END_ARG_INFO()
256
257 #define arginfo_pg_loreadall arginfo_pg_lo_read_all
258
259 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_lo_import, 0, 1, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE)
260 ZEND_ARG_INFO(0, connection)
261 ZEND_ARG_INFO(0, filename)
262 ZEND_ARG_INFO(0, oid)
263 ZEND_END_ARG_INFO()
264
265 #define arginfo_pg_loimport arginfo_pg_lo_import
266
267 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_export, 0, 1, _IS_BOOL, 0)
268 ZEND_ARG_INFO(0, connection)
269 ZEND_ARG_INFO(0, oid)
270 ZEND_ARG_INFO(0, filename)
271 ZEND_END_ARG_INFO()
272
273 #define arginfo_pg_loexport arginfo_pg_lo_export
274
275 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_seek, 0, 2, _IS_BOOL, 0)
276 ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
277 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
278 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, whence, IS_LONG, 0, "SEEK_CUR")
279 ZEND_END_ARG_INFO()
280
281 #define arginfo_pg_lo_tell arginfo_pg_lo_read_all
282
283 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_lo_truncate, 0, 2, _IS_BOOL, 0)
284 ZEND_ARG_OBJ_INFO(0, lob, PgSql\\Lob, 0)
285 ZEND_ARG_TYPE_INFO(0, size, IS_LONG, 0)
286 ZEND_END_ARG_INFO()
287
288 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_set_error_verbosity, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
289 ZEND_ARG_INFO(0, connection)
290 ZEND_ARG_TYPE_INFO(0, verbosity, IS_LONG, 0)
291 ZEND_END_ARG_INFO()
292
293 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_set_client_encoding, 0, 1, IS_LONG, 0)
294 ZEND_ARG_INFO(0, connection)
295 ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
296 ZEND_END_ARG_INFO()
297
298 #define arginfo_pg_setclientencoding arginfo_pg_set_client_encoding
299
300 #define arginfo_pg_client_encoding arginfo_pg_dbname
301
302 #define arginfo_pg_clientencoding arginfo_pg_dbname
303
304 #define arginfo_pg_end_copy arginfo_pg_ping
305
306 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_put_line, 0, 1, _IS_BOOL, 0)
307 ZEND_ARG_INFO(0, connection)
308 ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
309 ZEND_END_ARG_INFO()
310
311 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_copy_to, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
312 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
313 ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
314 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, separator, IS_STRING, 0, "\"\\t\"")
315 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, null_as, IS_STRING, 0, "\"\\\\\\\\N\"")
316 ZEND_END_ARG_INFO()
317
318 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_copy_from, 0, 3, _IS_BOOL, 0)
319 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
320 ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
321 ZEND_ARG_OBJ_TYPE_MASK(0, rows, Traversable, MAY_BE_ARRAY, NULL)
322 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, separator, IS_STRING, 0, "\"\\t\"")
323 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, null_as, IS_STRING, 0, "\"\\\\\\\\N\"")
324 ZEND_END_ARG_INFO()
325
326 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_escape_string, 0, 1, IS_STRING, 0)
327 ZEND_ARG_INFO(0, connection)
328 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
329 ZEND_END_ARG_INFO()
330
331 #define arginfo_pg_escape_bytea arginfo_pg_escape_string
332
333 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_unescape_bytea, 0, 1, IS_STRING, 0)
334 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
335 ZEND_END_ARG_INFO()
336
337 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_escape_literal, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
338 ZEND_ARG_INFO(0, connection)
339 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
340 ZEND_END_ARG_INFO()
341
342 #define arginfo_pg_escape_identifier arginfo_pg_escape_literal
343
344 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_result_error, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
345 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
346 ZEND_END_ARG_INFO()
347
348 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_result_error_field, 0, 2, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
349 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
350 ZEND_ARG_TYPE_INFO(0, field_code, IS_LONG, 0)
351 ZEND_END_ARG_INFO()
352
353 #define arginfo_pg_connection_status arginfo_pg_connect_poll
354
355 #define arginfo_pg_transaction_status arginfo_pg_connect_poll
356
357 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_connection_reset, 0, 1, _IS_BOOL, 0)
358 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
359 ZEND_END_ARG_INFO()
360
361 #define arginfo_pg_cancel_query arginfo_pg_connection_reset
362
363 #define arginfo_pg_connection_busy arginfo_pg_connection_reset
364
365 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_query, 0, 2, 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_END_ARG_INFO()
369
370 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_query_params, 0, 3, MAY_BE_LONG|MAY_BE_BOOL)
371 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
372 ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
373 ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
374 ZEND_END_ARG_INFO()
375
376 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_prepare, 0, 3, MAY_BE_LONG|MAY_BE_BOOL)
377 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
378 ZEND_ARG_TYPE_INFO(0, statement_name, IS_STRING, 0)
379 ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
380 ZEND_END_ARG_INFO()
381
382 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_send_execute, 0, 3, MAY_BE_LONG|MAY_BE_BOOL)
383 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
384 ZEND_ARG_TYPE_INFO(0, statement_name, IS_STRING, 0)
385 ZEND_ARG_TYPE_INFO(0, params, IS_ARRAY, 0)
386 ZEND_END_ARG_INFO()
387
388 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_get_result, 0, 1, PgSql\\Result, MAY_BE_FALSE)
389 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
390 ZEND_END_ARG_INFO()
391
392 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_result_status, 0, 1, MAY_BE_STRING|MAY_BE_LONG)
393 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
394 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_STATUS_LONG")
395 ZEND_END_ARG_INFO()
396
397 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_get_notify, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
398 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
399 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_ASSOC")
400 ZEND_END_ARG_INFO()
401
402 #define arginfo_pg_get_pid arginfo_pg_connect_poll
403
404 ZEND_BEGIN_ARG_INFO_EX(arginfo_pg_socket, 0, 0, 1)
405 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
406 ZEND_END_ARG_INFO()
407
408 #define arginfo_pg_consume_input arginfo_pg_connection_reset
409
410 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_flush, 0, 1, MAY_BE_LONG|MAY_BE_BOOL)
411 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
412 ZEND_END_ARG_INFO()
413
414 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_meta_data, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
415 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
416 ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
417 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extended, _IS_BOOL, 0, "false")
418 ZEND_END_ARG_INFO()
419
420 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_convert, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE)
421 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
422 ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
423 ZEND_ARG_TYPE_INFO(0, values, IS_ARRAY, 0)
424 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
425 ZEND_END_ARG_INFO()
426
427 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_insert, 0, 3, PgSql\\Result, MAY_BE_STRING|MAY_BE_BOOL)
428 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
429 ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
430 ZEND_ARG_TYPE_INFO(0, values, IS_ARRAY, 0)
431 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "PGSQL_DML_EXEC")
432 ZEND_END_ARG_INFO()
433
434 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_update, 0, 4, MAY_BE_STRING|MAY_BE_BOOL)
435 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
436 ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
437 ZEND_ARG_TYPE_INFO(0, values, IS_ARRAY, 0)
438 ZEND_ARG_TYPE_INFO(0, conditions, IS_ARRAY, 0)
439 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "PGSQL_DML_EXEC")
440 ZEND_END_ARG_INFO()
441
442 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_delete, 0, 3, MAY_BE_STRING|MAY_BE_BOOL)
443 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
444 ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
445 ZEND_ARG_TYPE_INFO(0, conditions, IS_ARRAY, 0)
446 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "PGSQL_DML_EXEC")
447 ZEND_END_ARG_INFO()
448
449 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_select, 0, 2, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
450 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
451 ZEND_ARG_TYPE_INFO(0, table_name, IS_STRING, 0)
452 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, conditions, IS_ARRAY, 0, "[]")
453 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "PGSQL_DML_EXEC")
454 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_ASSOC")
455 ZEND_END_ARG_INFO()
456
457 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_set_error_context_visibility, 0, 2, IS_LONG, 0)
458 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
459 ZEND_ARG_TYPE_INFO(0, visibility, IS_LONG, 0)
460 ZEND_END_ARG_INFO()
461
462 #if defined(HAVE_PG_RESULT_MEMORY_SIZE)
463 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_result_memory_size, 0, 1, IS_LONG, 0)
464 ZEND_ARG_OBJ_INFO(0, result, PgSql\\Result, 0)
465 ZEND_END_ARG_INFO()
466 #endif
467
468 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_change_password, 0, 3, _IS_BOOL, 0)
469 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
470 ZEND_ARG_TYPE_INFO(0, user, IS_STRING, 0)
471 ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
472 ZEND_END_ARG_INFO()
473
474 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_put_copy_data, 0, 2, IS_LONG, 0)
475 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
476 ZEND_ARG_TYPE_INFO(0, cmd, IS_STRING, 0)
477 ZEND_END_ARG_INFO()
478
479 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_put_copy_end, 0, 1, IS_LONG, 0)
480 ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
481 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error, IS_STRING, 1, "null")
482 ZEND_END_ARG_INFO()
483
484 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_socket_poll, 0, 3, IS_LONG, 0)
485 ZEND_ARG_INFO(0, socket)
486 ZEND_ARG_TYPE_INFO(0, read, IS_LONG, 0)
487 ZEND_ARG_TYPE_INFO(0, write, IS_LONG, 0)
488 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1")
489 ZEND_END_ARG_INFO()
490
491 #if defined(HAVE_PG_SET_CHUNKED_ROWS_SIZE)
492 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_set_chunked_rows_size, 0, 2, _IS_BOOL, 0)
493 ZEND_ARG_OBJ_INFO(0, connection, Pgsql\\Connection, 0)
494 ZEND_ARG_TYPE_INFO(0, size, IS_LONG, 0)
495 ZEND_END_ARG_INFO()
496 #endif
497
498 #if defined(HAVE_PG_CLOSE_STMT)
499 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_close_stmt, 0, 2, Pgsql\\Result, MAY_BE_FALSE)
500 ZEND_ARG_OBJ_INFO(0, connection, Pgsql\\Connection, 0)
501 ZEND_ARG_TYPE_INFO(0, statement_name, IS_STRING, 0)
502 ZEND_END_ARG_INFO()
503 #endif
504
505 ZEND_FUNCTION(pg_connect);
506 ZEND_FUNCTION(pg_pconnect);
507 ZEND_FUNCTION(pg_connect_poll);
508 ZEND_FUNCTION(pg_close);
509 ZEND_FUNCTION(pg_dbname);
510 ZEND_FUNCTION(pg_last_error);
511 ZEND_FUNCTION(pg_options);
512 ZEND_FUNCTION(pg_port);
513 ZEND_FUNCTION(pg_tty);
514 ZEND_FUNCTION(pg_host);
515 ZEND_FUNCTION(pg_version);
516 ZEND_FUNCTION(pg_jit);
517 ZEND_FUNCTION(pg_parameter_status);
518 ZEND_FUNCTION(pg_ping);
519 ZEND_FUNCTION(pg_query);
520 ZEND_FUNCTION(pg_query_params);
521 ZEND_FUNCTION(pg_prepare);
522 ZEND_FUNCTION(pg_execute);
523 ZEND_FUNCTION(pg_num_rows);
524 ZEND_FUNCTION(pg_num_fields);
525 ZEND_FUNCTION(pg_affected_rows);
526 ZEND_FUNCTION(pg_last_notice);
527 ZEND_FUNCTION(pg_field_table);
528 ZEND_FUNCTION(pg_field_name);
529 ZEND_FUNCTION(pg_field_size);
530 ZEND_FUNCTION(pg_field_type);
531 ZEND_FUNCTION(pg_field_type_oid);
532 ZEND_FUNCTION(pg_field_num);
533 ZEND_FUNCTION(pg_fetch_result);
534 ZEND_FUNCTION(pg_fetch_row);
535 ZEND_FUNCTION(pg_fetch_assoc);
536 ZEND_FUNCTION(pg_fetch_array);
537 ZEND_FUNCTION(pg_fetch_object);
538 ZEND_FUNCTION(pg_fetch_all);
539 ZEND_FUNCTION(pg_fetch_all_columns);
540 ZEND_FUNCTION(pg_result_seek);
541 ZEND_FUNCTION(pg_field_prtlen);
542 ZEND_FUNCTION(pg_fieldprtlen);
543 ZEND_FUNCTION(pg_field_is_null);
544 ZEND_FUNCTION(pg_fieldisnull);
545 ZEND_FUNCTION(pg_free_result);
546 ZEND_FUNCTION(pg_last_oid);
547 ZEND_FUNCTION(pg_trace);
548 ZEND_FUNCTION(pg_untrace);
549 ZEND_FUNCTION(pg_lo_create);
550 ZEND_FUNCTION(pg_lo_unlink);
551 ZEND_FUNCTION(pg_lo_open);
552 ZEND_FUNCTION(pg_lo_close);
553 ZEND_FUNCTION(pg_lo_read);
554 ZEND_FUNCTION(pg_lo_write);
555 ZEND_FUNCTION(pg_lo_read_all);
556 ZEND_FUNCTION(pg_lo_import);
557 ZEND_FUNCTION(pg_lo_export);
558 ZEND_FUNCTION(pg_lo_seek);
559 ZEND_FUNCTION(pg_lo_tell);
560 ZEND_FUNCTION(pg_lo_truncate);
561 ZEND_FUNCTION(pg_set_error_verbosity);
562 ZEND_FUNCTION(pg_set_client_encoding);
563 ZEND_FUNCTION(pg_client_encoding);
564 ZEND_FUNCTION(pg_end_copy);
565 ZEND_FUNCTION(pg_put_line);
566 ZEND_FUNCTION(pg_copy_to);
567 ZEND_FUNCTION(pg_copy_from);
568 ZEND_FUNCTION(pg_escape_string);
569 ZEND_FUNCTION(pg_escape_bytea);
570 ZEND_FUNCTION(pg_unescape_bytea);
571 ZEND_FUNCTION(pg_escape_literal);
572 ZEND_FUNCTION(pg_escape_identifier);
573 ZEND_FUNCTION(pg_result_error);
574 ZEND_FUNCTION(pg_result_error_field);
575 ZEND_FUNCTION(pg_connection_status);
576 ZEND_FUNCTION(pg_transaction_status);
577 ZEND_FUNCTION(pg_connection_reset);
578 ZEND_FUNCTION(pg_cancel_query);
579 ZEND_FUNCTION(pg_connection_busy);
580 ZEND_FUNCTION(pg_send_query);
581 ZEND_FUNCTION(pg_send_query_params);
582 ZEND_FUNCTION(pg_send_prepare);
583 ZEND_FUNCTION(pg_send_execute);
584 ZEND_FUNCTION(pg_get_result);
585 ZEND_FUNCTION(pg_result_status);
586 ZEND_FUNCTION(pg_get_notify);
587 ZEND_FUNCTION(pg_get_pid);
588 ZEND_FUNCTION(pg_socket);
589 ZEND_FUNCTION(pg_consume_input);
590 ZEND_FUNCTION(pg_flush);
591 ZEND_FUNCTION(pg_meta_data);
592 ZEND_FUNCTION(pg_convert);
593 ZEND_FUNCTION(pg_insert);
594 ZEND_FUNCTION(pg_update);
595 ZEND_FUNCTION(pg_delete);
596 ZEND_FUNCTION(pg_select);
597 ZEND_FUNCTION(pg_set_error_context_visibility);
598 #if defined(HAVE_PG_RESULT_MEMORY_SIZE)
599 ZEND_FUNCTION(pg_result_memory_size);
600 #endif
601 ZEND_FUNCTION(pg_change_password);
602 ZEND_FUNCTION(pg_put_copy_data);
603 ZEND_FUNCTION(pg_put_copy_end);
604 ZEND_FUNCTION(pg_socket_poll);
605 #if defined(HAVE_PG_SET_CHUNKED_ROWS_SIZE)
606 ZEND_FUNCTION(pg_set_chunked_rows_size);
607 #endif
608 #if defined(HAVE_PG_CLOSE_STMT)
609 ZEND_FUNCTION(pg_close_stmt);
610 #endif
611
612 static const zend_function_entry ext_functions[] = {
613 ZEND_FE(pg_connect, arginfo_pg_connect)
614 ZEND_FE(pg_pconnect, arginfo_pg_pconnect)
615 ZEND_FE(pg_connect_poll, arginfo_pg_connect_poll)
616 ZEND_FE(pg_close, arginfo_pg_close)
617 ZEND_FE(pg_dbname, arginfo_pg_dbname)
618 ZEND_FE(pg_last_error, arginfo_pg_last_error)
619 ZEND_RAW_FENTRY("pg_errormessage", zif_pg_last_error, arginfo_pg_errormessage, ZEND_ACC_DEPRECATED, NULL, NULL)
620 ZEND_FE(pg_options, arginfo_pg_options)
621 ZEND_FE(pg_port, arginfo_pg_port)
622 ZEND_FE(pg_tty, arginfo_pg_tty)
623 ZEND_FE(pg_host, arginfo_pg_host)
624 ZEND_FE(pg_version, arginfo_pg_version)
625 ZEND_FE(pg_jit, arginfo_pg_jit)
626 ZEND_FE(pg_parameter_status, arginfo_pg_parameter_status)
627 ZEND_FE(pg_ping, arginfo_pg_ping)
628 ZEND_FE(pg_query, arginfo_pg_query)
629 ZEND_RAW_FENTRY("pg_exec", zif_pg_query, arginfo_pg_exec, 0, NULL, NULL)
630 ZEND_FE(pg_query_params, arginfo_pg_query_params)
631 ZEND_FE(pg_prepare, arginfo_pg_prepare)
632 ZEND_FE(pg_execute, arginfo_pg_execute)
633 ZEND_FE(pg_num_rows, arginfo_pg_num_rows)
634 ZEND_RAW_FENTRY("pg_numrows", zif_pg_num_rows, arginfo_pg_numrows, ZEND_ACC_DEPRECATED, NULL, NULL)
635 ZEND_FE(pg_num_fields, arginfo_pg_num_fields)
636 ZEND_RAW_FENTRY("pg_numfields", zif_pg_num_fields, arginfo_pg_numfields, ZEND_ACC_DEPRECATED, NULL, NULL)
637 ZEND_FE(pg_affected_rows, arginfo_pg_affected_rows)
638 ZEND_RAW_FENTRY("pg_cmdtuples", zif_pg_affected_rows, arginfo_pg_cmdtuples, ZEND_ACC_DEPRECATED, NULL, NULL)
639 ZEND_FE(pg_last_notice, arginfo_pg_last_notice)
640 ZEND_FE(pg_field_table, arginfo_pg_field_table)
641 ZEND_FE(pg_field_name, arginfo_pg_field_name)
642 ZEND_RAW_FENTRY("pg_fieldname", zif_pg_field_name, arginfo_pg_fieldname, ZEND_ACC_DEPRECATED, NULL, NULL)
643 ZEND_FE(pg_field_size, arginfo_pg_field_size)
644 ZEND_RAW_FENTRY("pg_fieldsize", zif_pg_field_size, arginfo_pg_fieldsize, ZEND_ACC_DEPRECATED, NULL, NULL)
645 ZEND_FE(pg_field_type, arginfo_pg_field_type)
646 ZEND_RAW_FENTRY("pg_fieldtype", zif_pg_field_type, arginfo_pg_fieldtype, ZEND_ACC_DEPRECATED, NULL, NULL)
647 ZEND_FE(pg_field_type_oid, arginfo_pg_field_type_oid)
648 ZEND_FE(pg_field_num, arginfo_pg_field_num)
649 ZEND_RAW_FENTRY("pg_fieldnum", zif_pg_field_num, arginfo_pg_fieldnum, ZEND_ACC_DEPRECATED, NULL, NULL)
650 ZEND_FE(pg_fetch_result, arginfo_pg_fetch_result)
651 ZEND_RAW_FENTRY("pg_result", zif_pg_fetch_result, arginfo_pg_result, ZEND_ACC_DEPRECATED, NULL, NULL)
652 ZEND_FE(pg_fetch_row, arginfo_pg_fetch_row)
653 ZEND_FE(pg_fetch_assoc, arginfo_pg_fetch_assoc)
654 ZEND_FE(pg_fetch_array, arginfo_pg_fetch_array)
655 ZEND_FE(pg_fetch_object, arginfo_pg_fetch_object)
656 ZEND_FE(pg_fetch_all, arginfo_pg_fetch_all)
657 ZEND_FE(pg_fetch_all_columns, arginfo_pg_fetch_all_columns)
658 ZEND_FE(pg_result_seek, arginfo_pg_result_seek)
659 ZEND_FE(pg_field_prtlen, arginfo_pg_field_prtlen)
660 ZEND_RAW_FENTRY("pg_fieldprtlen", zif_pg_fieldprtlen, arginfo_pg_fieldprtlen, ZEND_ACC_DEPRECATED, NULL, NULL)
661 ZEND_FE(pg_field_is_null, arginfo_pg_field_is_null)
662 ZEND_RAW_FENTRY("pg_fieldisnull", zif_pg_fieldisnull, arginfo_pg_fieldisnull, ZEND_ACC_DEPRECATED, NULL, NULL)
663 ZEND_FE(pg_free_result, arginfo_pg_free_result)
664 ZEND_RAW_FENTRY("pg_freeresult", zif_pg_free_result, arginfo_pg_freeresult, ZEND_ACC_DEPRECATED, NULL, NULL)
665 ZEND_FE(pg_last_oid, arginfo_pg_last_oid)
666 ZEND_RAW_FENTRY("pg_getlastoid", zif_pg_last_oid, arginfo_pg_getlastoid, ZEND_ACC_DEPRECATED, NULL, NULL)
667 ZEND_FE(pg_trace, arginfo_pg_trace)
668 ZEND_FE(pg_untrace, arginfo_pg_untrace)
669 ZEND_FE(pg_lo_create, arginfo_pg_lo_create)
670 ZEND_RAW_FENTRY("pg_locreate", zif_pg_lo_create, arginfo_pg_locreate, ZEND_ACC_DEPRECATED, NULL, NULL)
671 ZEND_FE(pg_lo_unlink, arginfo_pg_lo_unlink)
672 ZEND_RAW_FENTRY("pg_lounlink", zif_pg_lo_unlink, arginfo_pg_lounlink, ZEND_ACC_DEPRECATED, NULL, NULL)
673 ZEND_FE(pg_lo_open, arginfo_pg_lo_open)
674 ZEND_RAW_FENTRY("pg_loopen", zif_pg_lo_open, arginfo_pg_loopen, ZEND_ACC_DEPRECATED, NULL, NULL)
675 ZEND_FE(pg_lo_close, arginfo_pg_lo_close)
676 ZEND_RAW_FENTRY("pg_loclose", zif_pg_lo_close, arginfo_pg_loclose, ZEND_ACC_DEPRECATED, NULL, NULL)
677 ZEND_FE(pg_lo_read, arginfo_pg_lo_read)
678 ZEND_RAW_FENTRY("pg_loread", zif_pg_lo_read, arginfo_pg_loread, ZEND_ACC_DEPRECATED, NULL, NULL)
679 ZEND_FE(pg_lo_write, arginfo_pg_lo_write)
680 ZEND_RAW_FENTRY("pg_lowrite", zif_pg_lo_write, arginfo_pg_lowrite, ZEND_ACC_DEPRECATED, NULL, NULL)
681 ZEND_FE(pg_lo_read_all, arginfo_pg_lo_read_all)
682 ZEND_RAW_FENTRY("pg_loreadall", zif_pg_lo_read_all, arginfo_pg_loreadall, ZEND_ACC_DEPRECATED, NULL, NULL)
683 ZEND_FE(pg_lo_import, arginfo_pg_lo_import)
684 ZEND_RAW_FENTRY("pg_loimport", zif_pg_lo_import, arginfo_pg_loimport, ZEND_ACC_DEPRECATED, NULL, NULL)
685 ZEND_FE(pg_lo_export, arginfo_pg_lo_export)
686 ZEND_RAW_FENTRY("pg_loexport", zif_pg_lo_export, arginfo_pg_loexport, ZEND_ACC_DEPRECATED, NULL, NULL)
687 ZEND_FE(pg_lo_seek, arginfo_pg_lo_seek)
688 ZEND_FE(pg_lo_tell, arginfo_pg_lo_tell)
689 ZEND_FE(pg_lo_truncate, arginfo_pg_lo_truncate)
690 ZEND_FE(pg_set_error_verbosity, arginfo_pg_set_error_verbosity)
691 ZEND_FE(pg_set_client_encoding, arginfo_pg_set_client_encoding)
692 ZEND_RAW_FENTRY("pg_setclientencoding", zif_pg_set_client_encoding, arginfo_pg_setclientencoding, ZEND_ACC_DEPRECATED, NULL, NULL)
693 ZEND_FE(pg_client_encoding, arginfo_pg_client_encoding)
694 ZEND_RAW_FENTRY("pg_clientencoding", zif_pg_client_encoding, arginfo_pg_clientencoding, ZEND_ACC_DEPRECATED, NULL, NULL)
695 ZEND_FE(pg_end_copy, arginfo_pg_end_copy)
696 ZEND_FE(pg_put_line, arginfo_pg_put_line)
697 ZEND_FE(pg_copy_to, arginfo_pg_copy_to)
698 ZEND_FE(pg_copy_from, arginfo_pg_copy_from)
699 ZEND_FE(pg_escape_string, arginfo_pg_escape_string)
700 ZEND_FE(pg_escape_bytea, arginfo_pg_escape_bytea)
701 ZEND_FE(pg_unescape_bytea, arginfo_pg_unescape_bytea)
702 ZEND_FE(pg_escape_literal, arginfo_pg_escape_literal)
703 ZEND_FE(pg_escape_identifier, arginfo_pg_escape_identifier)
704 ZEND_FE(pg_result_error, arginfo_pg_result_error)
705 ZEND_FE(pg_result_error_field, arginfo_pg_result_error_field)
706 ZEND_FE(pg_connection_status, arginfo_pg_connection_status)
707 ZEND_FE(pg_transaction_status, arginfo_pg_transaction_status)
708 ZEND_FE(pg_connection_reset, arginfo_pg_connection_reset)
709 ZEND_FE(pg_cancel_query, arginfo_pg_cancel_query)
710 ZEND_FE(pg_connection_busy, arginfo_pg_connection_busy)
711 ZEND_FE(pg_send_query, arginfo_pg_send_query)
712 ZEND_FE(pg_send_query_params, arginfo_pg_send_query_params)
713 ZEND_FE(pg_send_prepare, arginfo_pg_send_prepare)
714 ZEND_FE(pg_send_execute, arginfo_pg_send_execute)
715 ZEND_FE(pg_get_result, arginfo_pg_get_result)
716 ZEND_FE(pg_result_status, arginfo_pg_result_status)
717 ZEND_FE(pg_get_notify, arginfo_pg_get_notify)
718 ZEND_FE(pg_get_pid, arginfo_pg_get_pid)
719 ZEND_FE(pg_socket, arginfo_pg_socket)
720 ZEND_FE(pg_consume_input, arginfo_pg_consume_input)
721 ZEND_FE(pg_flush, arginfo_pg_flush)
722 ZEND_FE(pg_meta_data, arginfo_pg_meta_data)
723 ZEND_FE(pg_convert, arginfo_pg_convert)
724 ZEND_FE(pg_insert, arginfo_pg_insert)
725 ZEND_FE(pg_update, arginfo_pg_update)
726 ZEND_FE(pg_delete, arginfo_pg_delete)
727 ZEND_FE(pg_select, arginfo_pg_select)
728 ZEND_FE(pg_set_error_context_visibility, arginfo_pg_set_error_context_visibility)
729 #if defined(HAVE_PG_RESULT_MEMORY_SIZE)
730 ZEND_FE(pg_result_memory_size, arginfo_pg_result_memory_size)
731 #endif
732 ZEND_FE(pg_change_password, arginfo_pg_change_password)
733 ZEND_FE(pg_put_copy_data, arginfo_pg_put_copy_data)
734 ZEND_FE(pg_put_copy_end, arginfo_pg_put_copy_end)
735 ZEND_FE(pg_socket_poll, arginfo_pg_socket_poll)
736 #if defined(HAVE_PG_SET_CHUNKED_ROWS_SIZE)
737 ZEND_FE(pg_set_chunked_rows_size, arginfo_pg_set_chunked_rows_size)
738 #endif
739 #if defined(HAVE_PG_CLOSE_STMT)
740 ZEND_FE(pg_close_stmt, arginfo_pg_close_stmt)
741 #endif
742 ZEND_FE_END
743 };
744
register_pgsql_symbols(int module_number)745 static void register_pgsql_symbols(int module_number)
746 {
747 REGISTER_STRING_CONSTANT("PGSQL_LIBPQ_VERSION", pgsql_libpq_version, CONST_PERSISTENT);
748 REGISTER_STRING_CONSTANT("PGSQL_LIBPQ_VERSION_STR", pgsql_libpq_version, CONST_PERSISTENT | CONST_DEPRECATED);
749 REGISTER_LONG_CONSTANT("PGSQL_CONNECT_FORCE_NEW", PGSQL_CONNECT_FORCE_NEW, CONST_PERSISTENT);
750 REGISTER_LONG_CONSTANT("PGSQL_CONNECT_ASYNC", PGSQL_CONNECT_ASYNC, CONST_PERSISTENT);
751 REGISTER_LONG_CONSTANT("PGSQL_ASSOC", PGSQL_ASSOC, CONST_PERSISTENT);
752 REGISTER_LONG_CONSTANT("PGSQL_NUM", PGSQL_NUM, CONST_PERSISTENT);
753 REGISTER_LONG_CONSTANT("PGSQL_BOTH", PGSQL_BOTH, CONST_PERSISTENT);
754 REGISTER_LONG_CONSTANT("PGSQL_NOTICE_LAST", PGSQL_NOTICE_LAST, CONST_PERSISTENT);
755 REGISTER_LONG_CONSTANT("PGSQL_NOTICE_ALL", PGSQL_NOTICE_ALL, CONST_PERSISTENT);
756 REGISTER_LONG_CONSTANT("PGSQL_NOTICE_CLEAR", PGSQL_NOTICE_CLEAR, CONST_PERSISTENT);
757 REGISTER_LONG_CONSTANT("PGSQL_CONNECTION_BAD", CONNECTION_BAD, CONST_PERSISTENT);
758 REGISTER_LONG_CONSTANT("PGSQL_CONNECTION_OK", CONNECTION_OK, CONST_PERSISTENT);
759 REGISTER_LONG_CONSTANT("PGSQL_CONNECTION_STARTED", CONNECTION_STARTED, CONST_PERSISTENT);
760 REGISTER_LONG_CONSTANT("PGSQL_CONNECTION_MADE", CONNECTION_MADE, CONST_PERSISTENT);
761 REGISTER_LONG_CONSTANT("PGSQL_CONNECTION_AWAITING_RESPONSE", CONNECTION_AWAITING_RESPONSE, CONST_PERSISTENT);
762 REGISTER_LONG_CONSTANT("PGSQL_CONNECTION_AUTH_OK", CONNECTION_AUTH_OK, CONST_PERSISTENT);
763 #if defined(CONNECTION_SSL_STARTUP)
764 REGISTER_LONG_CONSTANT("PGSQL_CONNECTION_SSL_STARTUP", CONNECTION_SSL_STARTUP, CONST_PERSISTENT);
765 #endif
766 REGISTER_LONG_CONSTANT("PGSQL_CONNECTION_SETENV", CONNECTION_SETENV, CONST_PERSISTENT);
767 REGISTER_LONG_CONSTANT("PGSQL_POLLING_FAILED", PGRES_POLLING_FAILED, CONST_PERSISTENT);
768 REGISTER_LONG_CONSTANT("PGSQL_POLLING_READING", PGRES_POLLING_READING, CONST_PERSISTENT);
769 REGISTER_LONG_CONSTANT("PGSQL_POLLING_WRITING", PGRES_POLLING_WRITING, CONST_PERSISTENT);
770 REGISTER_LONG_CONSTANT("PGSQL_POLLING_OK", PGRES_POLLING_OK, CONST_PERSISTENT);
771 REGISTER_LONG_CONSTANT("PGSQL_POLLING_ACTIVE", PGRES_POLLING_ACTIVE, CONST_PERSISTENT);
772 REGISTER_LONG_CONSTANT("PGSQL_TRANSACTION_IDLE", PQTRANS_IDLE, CONST_PERSISTENT);
773 REGISTER_LONG_CONSTANT("PGSQL_TRANSACTION_ACTIVE", PQTRANS_ACTIVE, CONST_PERSISTENT);
774 REGISTER_LONG_CONSTANT("PGSQL_TRANSACTION_INTRANS", PQTRANS_INTRANS, CONST_PERSISTENT);
775 REGISTER_LONG_CONSTANT("PGSQL_TRANSACTION_INERROR", PQTRANS_INERROR, CONST_PERSISTENT);
776 REGISTER_LONG_CONSTANT("PGSQL_TRANSACTION_UNKNOWN", PQTRANS_UNKNOWN, CONST_PERSISTENT);
777 REGISTER_LONG_CONSTANT("PGSQL_ERRORS_TERSE", PQERRORS_TERSE, CONST_PERSISTENT);
778 REGISTER_LONG_CONSTANT("PGSQL_ERRORS_DEFAULT", PQERRORS_DEFAULT, CONST_PERSISTENT);
779 REGISTER_LONG_CONSTANT("PGSQL_ERRORS_VERBOSE", PQERRORS_VERBOSE, CONST_PERSISTENT);
780 #if defined(HAVE_PQERRORS_SQLSTATE)
781 REGISTER_LONG_CONSTANT("PGSQL_ERRORS_SQLSTATE", PQERRORS_SQLSTATE, CONST_PERSISTENT);
782 #endif
783 #if !(defined(HAVE_PQERRORS_SQLSTATE))
784 REGISTER_LONG_CONSTANT("PGSQL_ERRORS_SQLSTATE", PQERRORS_TERSE, CONST_PERSISTENT);
785 #endif
786 REGISTER_LONG_CONSTANT("PGSQL_SEEK_SET", SEEK_SET, CONST_PERSISTENT);
787 REGISTER_LONG_CONSTANT("PGSQL_SEEK_CUR", SEEK_CUR, CONST_PERSISTENT);
788 REGISTER_LONG_CONSTANT("PGSQL_SEEK_END", SEEK_END, CONST_PERSISTENT);
789 REGISTER_LONG_CONSTANT("PGSQL_STATUS_LONG", PGSQL_STATUS_LONG, CONST_PERSISTENT);
790 REGISTER_LONG_CONSTANT("PGSQL_STATUS_STRING", PGSQL_STATUS_STRING, CONST_PERSISTENT);
791 REGISTER_LONG_CONSTANT("PGSQL_EMPTY_QUERY", PGRES_EMPTY_QUERY, CONST_PERSISTENT);
792 REGISTER_LONG_CONSTANT("PGSQL_COMMAND_OK", PGRES_COMMAND_OK, CONST_PERSISTENT);
793 REGISTER_LONG_CONSTANT("PGSQL_TUPLES_OK", PGRES_TUPLES_OK, CONST_PERSISTENT);
794 #if defined(HAVE_PG_SET_CHUNKED_ROWS_SIZE)
795 REGISTER_LONG_CONSTANT("PGSQL_TUPLES_CHUNK", PGRES_TUPLES_CHUNK, CONST_PERSISTENT);
796 #endif
797 REGISTER_LONG_CONSTANT("PGSQL_COPY_OUT", PGRES_COPY_OUT, CONST_PERSISTENT);
798 REGISTER_LONG_CONSTANT("PGSQL_COPY_IN", PGRES_COPY_IN, CONST_PERSISTENT);
799 REGISTER_LONG_CONSTANT("PGSQL_BAD_RESPONSE", PGRES_BAD_RESPONSE, CONST_PERSISTENT);
800 REGISTER_LONG_CONSTANT("PGSQL_NONFATAL_ERROR", PGRES_NONFATAL_ERROR, CONST_PERSISTENT);
801 REGISTER_LONG_CONSTANT("PGSQL_FATAL_ERROR", PGRES_FATAL_ERROR, CONST_PERSISTENT);
802 REGISTER_LONG_CONSTANT("PGSQL_DIAG_SEVERITY", PG_DIAG_SEVERITY, CONST_PERSISTENT);
803 REGISTER_LONG_CONSTANT("PGSQL_DIAG_SQLSTATE", PG_DIAG_SQLSTATE, CONST_PERSISTENT);
804 REGISTER_LONG_CONSTANT("PGSQL_DIAG_MESSAGE_PRIMARY", PG_DIAG_MESSAGE_PRIMARY, CONST_PERSISTENT);
805 REGISTER_LONG_CONSTANT("PGSQL_DIAG_MESSAGE_DETAIL", PG_DIAG_MESSAGE_DETAIL, CONST_PERSISTENT);
806 REGISTER_LONG_CONSTANT("PGSQL_DIAG_MESSAGE_HINT", PG_DIAG_MESSAGE_HINT, CONST_PERSISTENT);
807 REGISTER_LONG_CONSTANT("PGSQL_DIAG_STATEMENT_POSITION", PG_DIAG_STATEMENT_POSITION, CONST_PERSISTENT);
808 #if defined(PG_DIAG_INTERNAL_POSITION)
809 REGISTER_LONG_CONSTANT("PGSQL_DIAG_INTERNAL_POSITION", PG_DIAG_INTERNAL_POSITION, CONST_PERSISTENT);
810 #endif
811 #if defined(PG_DIAG_INTERNAL_QUERY)
812 REGISTER_LONG_CONSTANT("PGSQL_DIAG_INTERNAL_QUERY", PG_DIAG_INTERNAL_QUERY, CONST_PERSISTENT);
813 #endif
814 REGISTER_LONG_CONSTANT("PGSQL_DIAG_CONTEXT", PG_DIAG_CONTEXT, CONST_PERSISTENT);
815 REGISTER_LONG_CONSTANT("PGSQL_DIAG_SOURCE_FILE", PG_DIAG_SOURCE_FILE, CONST_PERSISTENT);
816 REGISTER_LONG_CONSTANT("PGSQL_DIAG_SOURCE_LINE", PG_DIAG_SOURCE_LINE, CONST_PERSISTENT);
817 REGISTER_LONG_CONSTANT("PGSQL_DIAG_SOURCE_FUNCTION", PG_DIAG_SOURCE_FUNCTION, CONST_PERSISTENT);
818 #if defined(PG_DIAG_SCHEMA_NAME)
819 REGISTER_LONG_CONSTANT("PGSQL_DIAG_SCHEMA_NAME", PG_DIAG_SCHEMA_NAME, CONST_PERSISTENT);
820 #endif
821 #if defined(PG_DIAG_TABLE_NAME)
822 REGISTER_LONG_CONSTANT("PGSQL_DIAG_TABLE_NAME", PG_DIAG_TABLE_NAME, CONST_PERSISTENT);
823 #endif
824 #if defined(PG_DIAG_COLUMN_NAME)
825 REGISTER_LONG_CONSTANT("PGSQL_DIAG_COLUMN_NAME", PG_DIAG_COLUMN_NAME, CONST_PERSISTENT);
826 #endif
827 #if defined(PG_DIAG_DATATYPE_NAME)
828 REGISTER_LONG_CONSTANT("PGSQL_DIAG_DATATYPE_NAME", PG_DIAG_DATATYPE_NAME, CONST_PERSISTENT);
829 #endif
830 #if defined(PG_DIAG_CONSTRAINT_NAME)
831 REGISTER_LONG_CONSTANT("PGSQL_DIAG_CONSTRAINT_NAME", PG_DIAG_CONSTRAINT_NAME, CONST_PERSISTENT);
832 #endif
833 #if defined(PG_DIAG_SEVERITY_NONLOCALIZED)
834 REGISTER_LONG_CONSTANT("PGSQL_DIAG_SEVERITY_NONLOCALIZED", PG_DIAG_SEVERITY_NONLOCALIZED, CONST_PERSISTENT);
835 #endif
836 REGISTER_LONG_CONSTANT("PGSQL_CONV_IGNORE_DEFAULT", PGSQL_CONV_IGNORE_DEFAULT, CONST_PERSISTENT);
837 REGISTER_LONG_CONSTANT("PGSQL_CONV_FORCE_NULL", PGSQL_CONV_FORCE_NULL, CONST_PERSISTENT);
838 REGISTER_LONG_CONSTANT("PGSQL_CONV_IGNORE_NOT_NULL", PGSQL_CONV_IGNORE_NOT_NULL, CONST_PERSISTENT);
839 REGISTER_LONG_CONSTANT("PGSQL_DML_ESCAPE", PGSQL_DML_ESCAPE, CONST_PERSISTENT);
840 REGISTER_LONG_CONSTANT("PGSQL_DML_NO_CONV", PGSQL_DML_NO_CONV, CONST_PERSISTENT);
841 REGISTER_LONG_CONSTANT("PGSQL_DML_EXEC", PGSQL_DML_EXEC, CONST_PERSISTENT);
842 REGISTER_LONG_CONSTANT("PGSQL_DML_ASYNC", PGSQL_DML_ASYNC, CONST_PERSISTENT);
843 REGISTER_LONG_CONSTANT("PGSQL_DML_STRING", PGSQL_DML_STRING, CONST_PERSISTENT);
844 #if defined(PQTRACE_SUPPPRESS_TIMESTAMPS)
845 REGISTER_LONG_CONSTANT("PGSQL_TRACE_SUPPRESS_TIMESTAMPS", PQTRACE_SUPPRESS_TIMESTAMPS, CONST_PERSISTENT);
846 #endif
847 #if defined(PQTRACE_REGRESS_MODE)
848 REGISTER_LONG_CONSTANT("PGSQL_TRACE_REGRESS_MODE", PQTRACE_REGRESS_MODE, CONST_PERSISTENT);
849 #endif
850 REGISTER_LONG_CONSTANT("PGSQL_SHOW_CONTEXT_NEVER", PQSHOW_CONTEXT_NEVER, CONST_PERSISTENT);
851 REGISTER_LONG_CONSTANT("PGSQL_SHOW_CONTEXT_ERRORS", PQSHOW_CONTEXT_ERRORS, CONST_PERSISTENT);
852 REGISTER_LONG_CONSTANT("PGSQL_SHOW_CONTEXT_ALWAYS", PQSHOW_CONTEXT_ALWAYS, CONST_PERSISTENT);
853
854
855 zend_attribute *attribute_Deprecated_func_pg_errormessage_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_errormessage", sizeof("pg_errormessage") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
856 zval attribute_Deprecated_func_pg_errormessage_0_arg0;
857 zend_string *attribute_Deprecated_func_pg_errormessage_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
858 ZVAL_STR(&attribute_Deprecated_func_pg_errormessage_0_arg0, attribute_Deprecated_func_pg_errormessage_0_arg0_str);
859 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_errormessage_0->args[0].value, &attribute_Deprecated_func_pg_errormessage_0_arg0);
860 attribute_Deprecated_func_pg_errormessage_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
861 zval attribute_Deprecated_func_pg_errormessage_0_arg1;
862 zend_string *attribute_Deprecated_func_pg_errormessage_0_arg1_str = zend_string_init("use pg_last_error() instead", strlen("use pg_last_error() instead"), 1);
863 ZVAL_STR(&attribute_Deprecated_func_pg_errormessage_0_arg1, attribute_Deprecated_func_pg_errormessage_0_arg1_str);
864 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_errormessage_0->args[1].value, &attribute_Deprecated_func_pg_errormessage_0_arg1);
865 attribute_Deprecated_func_pg_errormessage_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
866
867 zend_attribute *attribute_Deprecated_func_pg_numrows_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_numrows", sizeof("pg_numrows") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
868 zval attribute_Deprecated_func_pg_numrows_0_arg0;
869 zend_string *attribute_Deprecated_func_pg_numrows_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
870 ZVAL_STR(&attribute_Deprecated_func_pg_numrows_0_arg0, attribute_Deprecated_func_pg_numrows_0_arg0_str);
871 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_numrows_0->args[0].value, &attribute_Deprecated_func_pg_numrows_0_arg0);
872 attribute_Deprecated_func_pg_numrows_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
873 zval attribute_Deprecated_func_pg_numrows_0_arg1;
874 zend_string *attribute_Deprecated_func_pg_numrows_0_arg1_str = zend_string_init("use pg_num_rows() instead", strlen("use pg_num_rows() instead"), 1);
875 ZVAL_STR(&attribute_Deprecated_func_pg_numrows_0_arg1, attribute_Deprecated_func_pg_numrows_0_arg1_str);
876 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_numrows_0->args[1].value, &attribute_Deprecated_func_pg_numrows_0_arg1);
877 attribute_Deprecated_func_pg_numrows_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
878
879 zend_attribute *attribute_Deprecated_func_pg_numfields_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_numfields", sizeof("pg_numfields") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
880 zval attribute_Deprecated_func_pg_numfields_0_arg0;
881 zend_string *attribute_Deprecated_func_pg_numfields_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
882 ZVAL_STR(&attribute_Deprecated_func_pg_numfields_0_arg0, attribute_Deprecated_func_pg_numfields_0_arg0_str);
883 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_numfields_0->args[0].value, &attribute_Deprecated_func_pg_numfields_0_arg0);
884 attribute_Deprecated_func_pg_numfields_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
885 zval attribute_Deprecated_func_pg_numfields_0_arg1;
886 zend_string *attribute_Deprecated_func_pg_numfields_0_arg1_str = zend_string_init("use pg_num_fields() instead", strlen("use pg_num_fields() instead"), 1);
887 ZVAL_STR(&attribute_Deprecated_func_pg_numfields_0_arg1, attribute_Deprecated_func_pg_numfields_0_arg1_str);
888 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_numfields_0->args[1].value, &attribute_Deprecated_func_pg_numfields_0_arg1);
889 attribute_Deprecated_func_pg_numfields_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
890
891 zend_attribute *attribute_Deprecated_func_pg_cmdtuples_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_cmdtuples", sizeof("pg_cmdtuples") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
892 zval attribute_Deprecated_func_pg_cmdtuples_0_arg0;
893 zend_string *attribute_Deprecated_func_pg_cmdtuples_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
894 ZVAL_STR(&attribute_Deprecated_func_pg_cmdtuples_0_arg0, attribute_Deprecated_func_pg_cmdtuples_0_arg0_str);
895 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_cmdtuples_0->args[0].value, &attribute_Deprecated_func_pg_cmdtuples_0_arg0);
896 attribute_Deprecated_func_pg_cmdtuples_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
897 zval attribute_Deprecated_func_pg_cmdtuples_0_arg1;
898 zend_string *attribute_Deprecated_func_pg_cmdtuples_0_arg1_str = zend_string_init("use pg_affected_rows() instead", strlen("use pg_affected_rows() instead"), 1);
899 ZVAL_STR(&attribute_Deprecated_func_pg_cmdtuples_0_arg1, attribute_Deprecated_func_pg_cmdtuples_0_arg1_str);
900 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_cmdtuples_0->args[1].value, &attribute_Deprecated_func_pg_cmdtuples_0_arg1);
901 attribute_Deprecated_func_pg_cmdtuples_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
902
903 zend_attribute *attribute_Deprecated_func_pg_fieldname_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_fieldname", sizeof("pg_fieldname") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
904 zval attribute_Deprecated_func_pg_fieldname_0_arg0;
905 zend_string *attribute_Deprecated_func_pg_fieldname_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
906 ZVAL_STR(&attribute_Deprecated_func_pg_fieldname_0_arg0, attribute_Deprecated_func_pg_fieldname_0_arg0_str);
907 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldname_0->args[0].value, &attribute_Deprecated_func_pg_fieldname_0_arg0);
908 attribute_Deprecated_func_pg_fieldname_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
909 zval attribute_Deprecated_func_pg_fieldname_0_arg1;
910 zend_string *attribute_Deprecated_func_pg_fieldname_0_arg1_str = zend_string_init("use pg_field_name() instead", strlen("use pg_field_name() instead"), 1);
911 ZVAL_STR(&attribute_Deprecated_func_pg_fieldname_0_arg1, attribute_Deprecated_func_pg_fieldname_0_arg1_str);
912 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldname_0->args[1].value, &attribute_Deprecated_func_pg_fieldname_0_arg1);
913 attribute_Deprecated_func_pg_fieldname_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
914
915 zend_attribute *attribute_Deprecated_func_pg_fieldsize_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_fieldsize", sizeof("pg_fieldsize") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
916 zval attribute_Deprecated_func_pg_fieldsize_0_arg0;
917 zend_string *attribute_Deprecated_func_pg_fieldsize_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
918 ZVAL_STR(&attribute_Deprecated_func_pg_fieldsize_0_arg0, attribute_Deprecated_func_pg_fieldsize_0_arg0_str);
919 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldsize_0->args[0].value, &attribute_Deprecated_func_pg_fieldsize_0_arg0);
920 attribute_Deprecated_func_pg_fieldsize_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
921 zval attribute_Deprecated_func_pg_fieldsize_0_arg1;
922 zend_string *attribute_Deprecated_func_pg_fieldsize_0_arg1_str = zend_string_init("use pg_field_size() instead", strlen("use pg_field_size() instead"), 1);
923 ZVAL_STR(&attribute_Deprecated_func_pg_fieldsize_0_arg1, attribute_Deprecated_func_pg_fieldsize_0_arg1_str);
924 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldsize_0->args[1].value, &attribute_Deprecated_func_pg_fieldsize_0_arg1);
925 attribute_Deprecated_func_pg_fieldsize_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
926
927 zend_attribute *attribute_Deprecated_func_pg_fieldtype_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_fieldtype", sizeof("pg_fieldtype") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
928 zval attribute_Deprecated_func_pg_fieldtype_0_arg0;
929 zend_string *attribute_Deprecated_func_pg_fieldtype_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
930 ZVAL_STR(&attribute_Deprecated_func_pg_fieldtype_0_arg0, attribute_Deprecated_func_pg_fieldtype_0_arg0_str);
931 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldtype_0->args[0].value, &attribute_Deprecated_func_pg_fieldtype_0_arg0);
932 attribute_Deprecated_func_pg_fieldtype_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
933 zval attribute_Deprecated_func_pg_fieldtype_0_arg1;
934 zend_string *attribute_Deprecated_func_pg_fieldtype_0_arg1_str = zend_string_init("use pg_field_type() instead", strlen("use pg_field_type() instead"), 1);
935 ZVAL_STR(&attribute_Deprecated_func_pg_fieldtype_0_arg1, attribute_Deprecated_func_pg_fieldtype_0_arg1_str);
936 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldtype_0->args[1].value, &attribute_Deprecated_func_pg_fieldtype_0_arg1);
937 attribute_Deprecated_func_pg_fieldtype_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
938
939 zend_attribute *attribute_Deprecated_func_pg_fieldnum_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_fieldnum", sizeof("pg_fieldnum") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
940 zval attribute_Deprecated_func_pg_fieldnum_0_arg0;
941 zend_string *attribute_Deprecated_func_pg_fieldnum_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
942 ZVAL_STR(&attribute_Deprecated_func_pg_fieldnum_0_arg0, attribute_Deprecated_func_pg_fieldnum_0_arg0_str);
943 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldnum_0->args[0].value, &attribute_Deprecated_func_pg_fieldnum_0_arg0);
944 attribute_Deprecated_func_pg_fieldnum_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
945 zval attribute_Deprecated_func_pg_fieldnum_0_arg1;
946 zend_string *attribute_Deprecated_func_pg_fieldnum_0_arg1_str = zend_string_init("use pg_field_num() instead", strlen("use pg_field_num() instead"), 1);
947 ZVAL_STR(&attribute_Deprecated_func_pg_fieldnum_0_arg1, attribute_Deprecated_func_pg_fieldnum_0_arg1_str);
948 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldnum_0->args[1].value, &attribute_Deprecated_func_pg_fieldnum_0_arg1);
949 attribute_Deprecated_func_pg_fieldnum_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
950
951 zend_attribute *attribute_Deprecated_func_pg_result_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_result", sizeof("pg_result") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
952 zval attribute_Deprecated_func_pg_result_0_arg0;
953 zend_string *attribute_Deprecated_func_pg_result_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
954 ZVAL_STR(&attribute_Deprecated_func_pg_result_0_arg0, attribute_Deprecated_func_pg_result_0_arg0_str);
955 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_result_0->args[0].value, &attribute_Deprecated_func_pg_result_0_arg0);
956 attribute_Deprecated_func_pg_result_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
957 zval attribute_Deprecated_func_pg_result_0_arg1;
958 zend_string *attribute_Deprecated_func_pg_result_0_arg1_str = zend_string_init("use pg_fetch_result() instead", strlen("use pg_fetch_result() instead"), 1);
959 ZVAL_STR(&attribute_Deprecated_func_pg_result_0_arg1, attribute_Deprecated_func_pg_result_0_arg1_str);
960 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_result_0->args[1].value, &attribute_Deprecated_func_pg_result_0_arg1);
961 attribute_Deprecated_func_pg_result_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
962
963 zend_attribute *attribute_Deprecated_func_pg_fieldprtlen_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_fieldprtlen", sizeof("pg_fieldprtlen") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
964 zval attribute_Deprecated_func_pg_fieldprtlen_0_arg0;
965 zend_string *attribute_Deprecated_func_pg_fieldprtlen_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
966 ZVAL_STR(&attribute_Deprecated_func_pg_fieldprtlen_0_arg0, attribute_Deprecated_func_pg_fieldprtlen_0_arg0_str);
967 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldprtlen_0->args[0].value, &attribute_Deprecated_func_pg_fieldprtlen_0_arg0);
968 attribute_Deprecated_func_pg_fieldprtlen_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
969 zval attribute_Deprecated_func_pg_fieldprtlen_0_arg1;
970 zend_string *attribute_Deprecated_func_pg_fieldprtlen_0_arg1_str = zend_string_init("use pg_field_prtlen() instead", strlen("use pg_field_prtlen() instead"), 1);
971 ZVAL_STR(&attribute_Deprecated_func_pg_fieldprtlen_0_arg1, attribute_Deprecated_func_pg_fieldprtlen_0_arg1_str);
972 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldprtlen_0->args[1].value, &attribute_Deprecated_func_pg_fieldprtlen_0_arg1);
973 attribute_Deprecated_func_pg_fieldprtlen_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
974
975 zend_attribute *attribute_Deprecated_func_pg_fieldisnull_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_fieldisnull", sizeof("pg_fieldisnull") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
976 zval attribute_Deprecated_func_pg_fieldisnull_0_arg0;
977 zend_string *attribute_Deprecated_func_pg_fieldisnull_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
978 ZVAL_STR(&attribute_Deprecated_func_pg_fieldisnull_0_arg0, attribute_Deprecated_func_pg_fieldisnull_0_arg0_str);
979 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldisnull_0->args[0].value, &attribute_Deprecated_func_pg_fieldisnull_0_arg0);
980 attribute_Deprecated_func_pg_fieldisnull_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
981 zval attribute_Deprecated_func_pg_fieldisnull_0_arg1;
982 zend_string *attribute_Deprecated_func_pg_fieldisnull_0_arg1_str = zend_string_init("use pg_field_is_null() instead", strlen("use pg_field_is_null() instead"), 1);
983 ZVAL_STR(&attribute_Deprecated_func_pg_fieldisnull_0_arg1, attribute_Deprecated_func_pg_fieldisnull_0_arg1_str);
984 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_fieldisnull_0->args[1].value, &attribute_Deprecated_func_pg_fieldisnull_0_arg1);
985 attribute_Deprecated_func_pg_fieldisnull_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
986
987 zend_attribute *attribute_Deprecated_func_pg_freeresult_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_freeresult", sizeof("pg_freeresult") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
988 zval attribute_Deprecated_func_pg_freeresult_0_arg0;
989 zend_string *attribute_Deprecated_func_pg_freeresult_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
990 ZVAL_STR(&attribute_Deprecated_func_pg_freeresult_0_arg0, attribute_Deprecated_func_pg_freeresult_0_arg0_str);
991 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_freeresult_0->args[0].value, &attribute_Deprecated_func_pg_freeresult_0_arg0);
992 attribute_Deprecated_func_pg_freeresult_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
993 zval attribute_Deprecated_func_pg_freeresult_0_arg1;
994 zend_string *attribute_Deprecated_func_pg_freeresult_0_arg1_str = zend_string_init("use pg_free_result() instead", strlen("use pg_free_result() instead"), 1);
995 ZVAL_STR(&attribute_Deprecated_func_pg_freeresult_0_arg1, attribute_Deprecated_func_pg_freeresult_0_arg1_str);
996 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_freeresult_0->args[1].value, &attribute_Deprecated_func_pg_freeresult_0_arg1);
997 attribute_Deprecated_func_pg_freeresult_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
998
999 zend_attribute *attribute_Deprecated_func_pg_getlastoid_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_getlastoid", sizeof("pg_getlastoid") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1000 zval attribute_Deprecated_func_pg_getlastoid_0_arg0;
1001 zend_string *attribute_Deprecated_func_pg_getlastoid_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1002 ZVAL_STR(&attribute_Deprecated_func_pg_getlastoid_0_arg0, attribute_Deprecated_func_pg_getlastoid_0_arg0_str);
1003 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_getlastoid_0->args[0].value, &attribute_Deprecated_func_pg_getlastoid_0_arg0);
1004 attribute_Deprecated_func_pg_getlastoid_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1005 zval attribute_Deprecated_func_pg_getlastoid_0_arg1;
1006 zend_string *attribute_Deprecated_func_pg_getlastoid_0_arg1_str = zend_string_init("use pg_last_oid() instead", strlen("use pg_last_oid() instead"), 1);
1007 ZVAL_STR(&attribute_Deprecated_func_pg_getlastoid_0_arg1, attribute_Deprecated_func_pg_getlastoid_0_arg1_str);
1008 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_getlastoid_0->args[1].value, &attribute_Deprecated_func_pg_getlastoid_0_arg1);
1009 attribute_Deprecated_func_pg_getlastoid_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1010
1011 zend_attribute *attribute_Deprecated_func_pg_locreate_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_locreate", sizeof("pg_locreate") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1012 zval attribute_Deprecated_func_pg_locreate_0_arg0;
1013 zend_string *attribute_Deprecated_func_pg_locreate_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1014 ZVAL_STR(&attribute_Deprecated_func_pg_locreate_0_arg0, attribute_Deprecated_func_pg_locreate_0_arg0_str);
1015 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_locreate_0->args[0].value, &attribute_Deprecated_func_pg_locreate_0_arg0);
1016 attribute_Deprecated_func_pg_locreate_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1017 zval attribute_Deprecated_func_pg_locreate_0_arg1;
1018 zend_string *attribute_Deprecated_func_pg_locreate_0_arg1_str = zend_string_init("use pg_lo_create() instead", strlen("use pg_lo_create() instead"), 1);
1019 ZVAL_STR(&attribute_Deprecated_func_pg_locreate_0_arg1, attribute_Deprecated_func_pg_locreate_0_arg1_str);
1020 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_locreate_0->args[1].value, &attribute_Deprecated_func_pg_locreate_0_arg1);
1021 attribute_Deprecated_func_pg_locreate_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1022
1023 zend_attribute *attribute_Deprecated_func_pg_lounlink_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_lounlink", sizeof("pg_lounlink") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1024 zval attribute_Deprecated_func_pg_lounlink_0_arg0;
1025 zend_string *attribute_Deprecated_func_pg_lounlink_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1026 ZVAL_STR(&attribute_Deprecated_func_pg_lounlink_0_arg0, attribute_Deprecated_func_pg_lounlink_0_arg0_str);
1027 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_lounlink_0->args[0].value, &attribute_Deprecated_func_pg_lounlink_0_arg0);
1028 attribute_Deprecated_func_pg_lounlink_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1029 zval attribute_Deprecated_func_pg_lounlink_0_arg1;
1030 zend_string *attribute_Deprecated_func_pg_lounlink_0_arg1_str = zend_string_init("use pg_lo_unlink() instead", strlen("use pg_lo_unlink() instead"), 1);
1031 ZVAL_STR(&attribute_Deprecated_func_pg_lounlink_0_arg1, attribute_Deprecated_func_pg_lounlink_0_arg1_str);
1032 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_lounlink_0->args[1].value, &attribute_Deprecated_func_pg_lounlink_0_arg1);
1033 attribute_Deprecated_func_pg_lounlink_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1034
1035 zend_attribute *attribute_Deprecated_func_pg_loopen_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_loopen", sizeof("pg_loopen") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1036 zval attribute_Deprecated_func_pg_loopen_0_arg0;
1037 zend_string *attribute_Deprecated_func_pg_loopen_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1038 ZVAL_STR(&attribute_Deprecated_func_pg_loopen_0_arg0, attribute_Deprecated_func_pg_loopen_0_arg0_str);
1039 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loopen_0->args[0].value, &attribute_Deprecated_func_pg_loopen_0_arg0);
1040 attribute_Deprecated_func_pg_loopen_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1041 zval attribute_Deprecated_func_pg_loopen_0_arg1;
1042 zend_string *attribute_Deprecated_func_pg_loopen_0_arg1_str = zend_string_init("use pg_lo_open() instead", strlen("use pg_lo_open() instead"), 1);
1043 ZVAL_STR(&attribute_Deprecated_func_pg_loopen_0_arg1, attribute_Deprecated_func_pg_loopen_0_arg1_str);
1044 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loopen_0->args[1].value, &attribute_Deprecated_func_pg_loopen_0_arg1);
1045 attribute_Deprecated_func_pg_loopen_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1046
1047 zend_attribute *attribute_Deprecated_func_pg_loclose_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_loclose", sizeof("pg_loclose") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1048 zval attribute_Deprecated_func_pg_loclose_0_arg0;
1049 zend_string *attribute_Deprecated_func_pg_loclose_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1050 ZVAL_STR(&attribute_Deprecated_func_pg_loclose_0_arg0, attribute_Deprecated_func_pg_loclose_0_arg0_str);
1051 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loclose_0->args[0].value, &attribute_Deprecated_func_pg_loclose_0_arg0);
1052 attribute_Deprecated_func_pg_loclose_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1053 zval attribute_Deprecated_func_pg_loclose_0_arg1;
1054 zend_string *attribute_Deprecated_func_pg_loclose_0_arg1_str = zend_string_init("use pg_lo_close() instead", strlen("use pg_lo_close() instead"), 1);
1055 ZVAL_STR(&attribute_Deprecated_func_pg_loclose_0_arg1, attribute_Deprecated_func_pg_loclose_0_arg1_str);
1056 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loclose_0->args[1].value, &attribute_Deprecated_func_pg_loclose_0_arg1);
1057 attribute_Deprecated_func_pg_loclose_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1058
1059 zend_attribute *attribute_Deprecated_func_pg_loread_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_loread", sizeof("pg_loread") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1060 zval attribute_Deprecated_func_pg_loread_0_arg0;
1061 zend_string *attribute_Deprecated_func_pg_loread_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1062 ZVAL_STR(&attribute_Deprecated_func_pg_loread_0_arg0, attribute_Deprecated_func_pg_loread_0_arg0_str);
1063 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loread_0->args[0].value, &attribute_Deprecated_func_pg_loread_0_arg0);
1064 attribute_Deprecated_func_pg_loread_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1065 zval attribute_Deprecated_func_pg_loread_0_arg1;
1066 zend_string *attribute_Deprecated_func_pg_loread_0_arg1_str = zend_string_init("use pg_lo_read() instead", strlen("use pg_lo_read() instead"), 1);
1067 ZVAL_STR(&attribute_Deprecated_func_pg_loread_0_arg1, attribute_Deprecated_func_pg_loread_0_arg1_str);
1068 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loread_0->args[1].value, &attribute_Deprecated_func_pg_loread_0_arg1);
1069 attribute_Deprecated_func_pg_loread_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1070
1071 zend_attribute *attribute_Deprecated_func_pg_lowrite_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_lowrite", sizeof("pg_lowrite") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1072 zval attribute_Deprecated_func_pg_lowrite_0_arg0;
1073 zend_string *attribute_Deprecated_func_pg_lowrite_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1074 ZVAL_STR(&attribute_Deprecated_func_pg_lowrite_0_arg0, attribute_Deprecated_func_pg_lowrite_0_arg0_str);
1075 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_lowrite_0->args[0].value, &attribute_Deprecated_func_pg_lowrite_0_arg0);
1076 attribute_Deprecated_func_pg_lowrite_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1077 zval attribute_Deprecated_func_pg_lowrite_0_arg1;
1078 zend_string *attribute_Deprecated_func_pg_lowrite_0_arg1_str = zend_string_init("use pg_lo_write() instead", strlen("use pg_lo_write() instead"), 1);
1079 ZVAL_STR(&attribute_Deprecated_func_pg_lowrite_0_arg1, attribute_Deprecated_func_pg_lowrite_0_arg1_str);
1080 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_lowrite_0->args[1].value, &attribute_Deprecated_func_pg_lowrite_0_arg1);
1081 attribute_Deprecated_func_pg_lowrite_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1082
1083 zend_attribute *attribute_Deprecated_func_pg_loreadall_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_loreadall", sizeof("pg_loreadall") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1084 zval attribute_Deprecated_func_pg_loreadall_0_arg0;
1085 zend_string *attribute_Deprecated_func_pg_loreadall_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1086 ZVAL_STR(&attribute_Deprecated_func_pg_loreadall_0_arg0, attribute_Deprecated_func_pg_loreadall_0_arg0_str);
1087 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loreadall_0->args[0].value, &attribute_Deprecated_func_pg_loreadall_0_arg0);
1088 attribute_Deprecated_func_pg_loreadall_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1089 zval attribute_Deprecated_func_pg_loreadall_0_arg1;
1090 zend_string *attribute_Deprecated_func_pg_loreadall_0_arg1_str = zend_string_init("use pg_lo_read_all() instead", strlen("use pg_lo_read_all() instead"), 1);
1091 ZVAL_STR(&attribute_Deprecated_func_pg_loreadall_0_arg1, attribute_Deprecated_func_pg_loreadall_0_arg1_str);
1092 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loreadall_0->args[1].value, &attribute_Deprecated_func_pg_loreadall_0_arg1);
1093 attribute_Deprecated_func_pg_loreadall_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1094
1095 zend_attribute *attribute_Deprecated_func_pg_loimport_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_loimport", sizeof("pg_loimport") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1096 zval attribute_Deprecated_func_pg_loimport_0_arg0;
1097 zend_string *attribute_Deprecated_func_pg_loimport_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1098 ZVAL_STR(&attribute_Deprecated_func_pg_loimport_0_arg0, attribute_Deprecated_func_pg_loimport_0_arg0_str);
1099 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loimport_0->args[0].value, &attribute_Deprecated_func_pg_loimport_0_arg0);
1100 attribute_Deprecated_func_pg_loimport_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1101 zval attribute_Deprecated_func_pg_loimport_0_arg1;
1102 zend_string *attribute_Deprecated_func_pg_loimport_0_arg1_str = zend_string_init("use pg_lo_import() instead", strlen("use pg_lo_import() instead"), 1);
1103 ZVAL_STR(&attribute_Deprecated_func_pg_loimport_0_arg1, attribute_Deprecated_func_pg_loimport_0_arg1_str);
1104 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loimport_0->args[1].value, &attribute_Deprecated_func_pg_loimport_0_arg1);
1105 attribute_Deprecated_func_pg_loimport_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1106
1107 zend_attribute *attribute_Deprecated_func_pg_loexport_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_loexport", sizeof("pg_loexport") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1108 zval attribute_Deprecated_func_pg_loexport_0_arg0;
1109 zend_string *attribute_Deprecated_func_pg_loexport_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1110 ZVAL_STR(&attribute_Deprecated_func_pg_loexport_0_arg0, attribute_Deprecated_func_pg_loexport_0_arg0_str);
1111 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loexport_0->args[0].value, &attribute_Deprecated_func_pg_loexport_0_arg0);
1112 attribute_Deprecated_func_pg_loexport_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1113 zval attribute_Deprecated_func_pg_loexport_0_arg1;
1114 zend_string *attribute_Deprecated_func_pg_loexport_0_arg1_str = zend_string_init("use pg_lo_export() instead", strlen("use pg_lo_export() instead"), 1);
1115 ZVAL_STR(&attribute_Deprecated_func_pg_loexport_0_arg1, attribute_Deprecated_func_pg_loexport_0_arg1_str);
1116 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_loexport_0->args[1].value, &attribute_Deprecated_func_pg_loexport_0_arg1);
1117 attribute_Deprecated_func_pg_loexport_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1118
1119 zend_attribute *attribute_Deprecated_func_pg_setclientencoding_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_setclientencoding", sizeof("pg_setclientencoding") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1120 zval attribute_Deprecated_func_pg_setclientencoding_0_arg0;
1121 zend_string *attribute_Deprecated_func_pg_setclientencoding_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1122 ZVAL_STR(&attribute_Deprecated_func_pg_setclientencoding_0_arg0, attribute_Deprecated_func_pg_setclientencoding_0_arg0_str);
1123 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_setclientencoding_0->args[0].value, &attribute_Deprecated_func_pg_setclientencoding_0_arg0);
1124 attribute_Deprecated_func_pg_setclientencoding_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1125 zval attribute_Deprecated_func_pg_setclientencoding_0_arg1;
1126 zend_string *attribute_Deprecated_func_pg_setclientencoding_0_arg1_str = zend_string_init("use pg_set_client_encoding() instead", strlen("use pg_set_client_encoding() instead"), 1);
1127 ZVAL_STR(&attribute_Deprecated_func_pg_setclientencoding_0_arg1, attribute_Deprecated_func_pg_setclientencoding_0_arg1_str);
1128 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_setclientencoding_0->args[1].value, &attribute_Deprecated_func_pg_setclientencoding_0_arg1);
1129 attribute_Deprecated_func_pg_setclientencoding_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1130
1131 zend_attribute *attribute_Deprecated_func_pg_clientencoding_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_clientencoding", sizeof("pg_clientencoding") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
1132 zval attribute_Deprecated_func_pg_clientencoding_0_arg0;
1133 zend_string *attribute_Deprecated_func_pg_clientencoding_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
1134 ZVAL_STR(&attribute_Deprecated_func_pg_clientencoding_0_arg0, attribute_Deprecated_func_pg_clientencoding_0_arg0_str);
1135 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_clientencoding_0->args[0].value, &attribute_Deprecated_func_pg_clientencoding_0_arg0);
1136 attribute_Deprecated_func_pg_clientencoding_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
1137 zval attribute_Deprecated_func_pg_clientencoding_0_arg1;
1138 zend_string *attribute_Deprecated_func_pg_clientencoding_0_arg1_str = zend_string_init("use pg_client_encoding() instead", strlen("use pg_client_encoding() instead"), 1);
1139 ZVAL_STR(&attribute_Deprecated_func_pg_clientencoding_0_arg1, attribute_Deprecated_func_pg_clientencoding_0_arg1_str);
1140 ZVAL_COPY_VALUE(&attribute_Deprecated_func_pg_clientencoding_0->args[1].value, &attribute_Deprecated_func_pg_clientencoding_0_arg1);
1141 attribute_Deprecated_func_pg_clientencoding_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
1142
1143 zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "pg_change_password", sizeof("pg_change_password") - 1), 2, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0);
1144 }
1145
register_class_PgSql_Connection(void)1146 static zend_class_entry *register_class_PgSql_Connection(void)
1147 {
1148 zend_class_entry ce, *class_entry;
1149
1150 INIT_NS_CLASS_ENTRY(ce, "PgSql", "Connection", NULL);
1151 class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
1152
1153 return class_entry;
1154 }
1155
register_class_PgSql_Result(void)1156 static zend_class_entry *register_class_PgSql_Result(void)
1157 {
1158 zend_class_entry ce, *class_entry;
1159
1160 INIT_NS_CLASS_ENTRY(ce, "PgSql", "Result", NULL);
1161 class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
1162
1163 return class_entry;
1164 }
1165
register_class_PgSql_Lob(void)1166 static zend_class_entry *register_class_PgSql_Lob(void)
1167 {
1168 zend_class_entry ce, *class_entry;
1169
1170 INIT_NS_CLASS_ENTRY(ce, "PgSql", "Lob", NULL);
1171 class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
1172
1173 return class_entry;
1174 }
1175