Repository navigation
Expand file tree
/
Copy pathinterbase.stub.php
More file actions
552 lines (445 loc) · 16.2 KB
/
Copy pathinterbase.stub.php
File metadata and controls
552 lines (445 loc) · 16.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
<?php
/**
* @generate-function-entries
* @generate-legacy-arginfo 70000
*/
/*
* Notes on typing
*
* - Resources (links, transactions, queries, results, blobs, events, service
* handles) cannot be typed in PHP, so those parameters are left untyped and
* functions that return a resource have no native return type.
*
* - Many functions take an optional link/transaction as their FIRST argument
* and work out what each position means from the number of arguments passed.
* Those positions are left untyped.
*
* - "= UNKNOWN" is used only on those count-dependent positions: what the
* argument means depends on how many were passed, so no single default
* value fits. Elsewhere an optional link/name defaults to null, and passing
* null is the same as leaving it out (ZPP "r!" / "s!").
*/
/** @return resource|false */
function ibase_connect(string $database = "", string $username = "", string $password = "", string $charset = "", int $buffers = 0, int $dialect = 0, string $role = "", int $sync = 0) { die; }
/** @return resource|false */
function ibase_pconnect(string $database = "", string $username = "", string $password = "", string $charset = "", int $buffers = 0, int $dialect = 0, string $role = "", int $sync = 0) { die; }
/** @param resource $link_identifier */
function ibase_close($link_identifier = null): bool { die; }
/** @param resource $link_identifier */
function ibase_drop_db($link_identifier = null): bool { die; }
/**
* ibase_query([resource $link_identifier, [resource $trans_identifier,]] string $query, mixed ...$bind_arg)
* ibase_query(IBASE_CREATE, string $query)
*
* @param resource|string|int $link_identifier
* @param resource|string|mixed $query
* @return resource|int|bool
*/
function ibase_query($link_identifier, $query = UNKNOWN, mixed ...$bind_arg) { die; }
/** @param resource $result */
function ibase_fetch_row($result, int $fetch_flags = 0): array|false { die; }
/** @param resource $result */
function ibase_fetch_assoc($result, int $fetch_flags = 0): array|false { die; }
/** @param resource $result */
function ibase_fetch_object($result, int $fetch_flags = 0): stdClass|false { die; }
/** @param resource $result */
function ibase_free_result($result): bool { die; }
/** @param resource $result */
function ibase_name_result($result, string $name): bool { die; }
/**
* ibase_prepare(string $query)
* ibase_prepare(resource $link_identifier, string $query)
* ibase_prepare(resource $link_identifier, resource $trans_identifier, string $query)
*
* @param resource|string $link_identifier
* @param resource|string $query
* @param string $trans_query
* @return resource|false
*/
function ibase_prepare($link_identifier, $query = UNKNOWN, $trans_query = UNKNOWN) { die; }
/**
* @param resource $query
* @return resource|int|bool
*/
function ibase_execute($query, mixed ...$bind_arg) { die; }
/** @param resource $query */
function ibase_free_query($query): bool { die; }
/** @param resource $link_identifier */
function ibase_gen_id(string $generator, int $increment = 1, $link_identifier = null): int|string|false { die; }
/** @param resource $query_result */
function ibase_num_fields($query_result): int { die; }
/** @param resource $query */
function ibase_num_params($query): int { die; }
/** @param resource $link_identifier */
function ibase_affected_rows($link_identifier = null): int|false { die; }
/** @param resource $query */
function ibase_query_affected_rows($query): int|false { die; }
/** @param resource $query_result */
function ibase_field_info($query_result, int $field_number): array|false { die; }
/** @param resource $query */
function ibase_param_info($query, int $field_number): array|false { die; }
/**
* ibase_trans([int $trans_args, [resource $link_identifier, ...]], ...)
*
* @return resource|false
*/
function ibase_trans(mixed ...$trans_args) { die; }
/** @param resource $link_identifier */
function ibase_commit($link_identifier = null): bool { die; }
/** @param resource $link_identifier */
function ibase_rollback($link_identifier = null): bool { die; }
/** @param resource $link_identifier */
function ibase_commit_ret($link_identifier = null): bool { die; }
/** @param resource $link_identifier */
function ibase_rollback_ret($link_identifier = null): bool { die; }
/**
* ibase_blob_info([resource $link_identifier,] string $blob_id)
*
* @param resource|string $link_identifier
* @param string $blob_id
*/
function ibase_blob_info($link_identifier, $blob_id = UNKNOWN): array|false { die; }
/**
* @param resource $link_identifier
* @return resource|false
*/
function ibase_blob_create($link_identifier = null) { die; }
/**
* @param resource $blob_handle
* @param string $data
*/
function ibase_blob_add($blob_handle, $data): ?bool { die; }
/** @param resource $blob_handle */
function ibase_blob_cancel($blob_handle): bool { die; }
/** @param resource $blob_handle */
function ibase_blob_close($blob_handle): string|bool { die; }
/**
* ibase_blob_open([resource $link_identifier,] string $blob_id)
*
* @param resource|string $link_identifier
* @param string $blob_id
* @return resource|false
*/
function ibase_blob_open($link_identifier, $blob_id = UNKNOWN) { die; }
/** @param resource $blob_handle */
function ibase_blob_get($blob_handle, int $len): string|false { die; }
/**
* ibase_blob_echo([resource $link_identifier,] string $blob_id)
*
* @param resource|string $link_identifier
* @param string $blob_id
*/
function ibase_blob_echo($link_identifier, $blob_id = UNKNOWN): bool { die; }
/**
* ibase_blob_import([resource $link_identifier,] resource $file)
*
* @param resource $link_identifier
* @param resource $file
*/
function ibase_blob_import($link_identifier, $file = UNKNOWN): string|false { die; }
function ibase_errmsg(): string|false { die; }
function ibase_errcode(): int|false { die; }
/** @param resource $service_handle */
function ibase_add_user($service_handle, string $user_name, string $password, ?string $first_name = null, ?string $middle_name = null, ?string $last_name = null): bool { die; }
/** @param resource $service_handle */
function ibase_modify_user($service_handle, string $user_name, string $password, ?string $first_name = null, ?string $middle_name = null, ?string $last_name = null): bool { die; }
/** @param resource $service_handle */
function ibase_delete_user($service_handle, string $user_name): bool { die; }
/** @return resource|false */
function ibase_service_attach(?string $host = null, ?string $dba_username = null, ?string $dba_password = null) { die; }
/** @param resource $service_handle */
function ibase_service_detach($service_handle): bool { die; }
/** @param resource $service_handle */
function ibase_backup($service_handle, string $source_db, string $dest_file, int $options = 0, bool $verbose = false): string|bool { die; }
/** @param resource $service_handle */
function ibase_restore($service_handle, string $source_file, string $dest_db, int $options = 0, bool $verbose = false): string|bool { die; }
/** @param resource $service_handle */
function ibase_maintain_db($service_handle, string $db, int $action, int $argument = 0): bool { die; }
/** @param resource $service_handle */
function ibase_db_info($service_handle, string $db, int $action, int $argument = 0): string|bool { die; }
/** @param resource $service_handle */
function ibase_server_info($service_handle, int $action): string|array|bool { die; }
/**
* ibase_wait_event([resource $link_identifier,] string $event, string ...$event)
*
* @param resource|string $link_identifier
*/
function ibase_wait_event($link_identifier, mixed ...$event): string|false { die; }
/**
* ibase_set_event_handler([resource $link_identifier,] callable $handler, string $event, string ...$event)
*
* @param resource|callable $link_identifier
* @param callable|string $handler
* @return resource|false
*/
function ibase_set_event_handler($link_identifier, $handler, mixed ...$event) { die; }
/** @param resource $event */
function ibase_free_event_handler($event): bool { die; }
function ibase_get_client_version(): int { die; }
function ibase_get_client_major_version(): int { die; }
function ibase_get_client_minor_version(): int { die; }
/*
* Firebird aliases. As Firebird and InterBase are developed independently,
* Firebird users should use these so future InterBase-specific changes do not
* affect their code.
*/
/**
* @return resource|false
* @alias ibase_connect
*/
function fbird_connect(string $database = "", string $username = "", string $password = "", string $charset = "", int $buffers = 0, int $dialect = 0, string $role = "", int $sync = 0) { die; }
/**
* @return resource|false
* @alias ibase_pconnect
*/
function fbird_pconnect(string $database = "", string $username = "", string $password = "", string $charset = "", int $buffers = 0, int $dialect = 0, string $role = "", int $sync = 0) { die; }
/**
* @param resource $link_identifier
* @alias ibase_close
*/
function fbird_close($link_identifier = null): bool { die; }
/**
* @param resource $link_identifier
* @alias ibase_drop_db
*/
function fbird_drop_db($link_identifier = null): bool { die; }
/**
* @param resource|string|int $link_identifier
* @param resource|string|mixed $query
* @return resource|int|bool
* @alias ibase_query
*/
function fbird_query($link_identifier, $query = UNKNOWN, mixed ...$bind_arg) { die; }
/**
* @param resource $result
* @alias ibase_fetch_row
*/
function fbird_fetch_row($result, int $fetch_flags = 0): array|false { die; }
/**
* @param resource $result
* @alias ibase_fetch_assoc
*/
function fbird_fetch_assoc($result, int $fetch_flags = 0): array|false { die; }
/**
* @param resource $result
* @alias ibase_fetch_object
*/
function fbird_fetch_object($result, int $fetch_flags = 0): stdClass|false { die; }
/**
* @param resource $result
* @alias ibase_free_result
*/
function fbird_free_result($result): bool { die; }
/**
* @param resource $result
* @alias ibase_name_result
*/
function fbird_name_result($result, string $name): bool { die; }
/**
* @param resource|string $link_identifier
* @param resource|string $query
* @param string $trans_query
* @return resource|false
* @alias ibase_prepare
*/
function fbird_prepare($link_identifier, $query = UNKNOWN, $trans_query = UNKNOWN) { die; }
/**
* @param resource $query
* @return resource|int|bool
* @alias ibase_execute
*/
function fbird_execute($query, mixed ...$bind_arg) { die; }
/**
* @param resource $query
* @alias ibase_free_query
*/
function fbird_free_query($query): bool { die; }
/**
* @param resource $link_identifier
* @alias ibase_gen_id
*/
function fbird_gen_id(string $generator, int $increment = 1, $link_identifier = null): int|string|false { die; }
/**
* @param resource $query_result
* @alias ibase_num_fields
*/
function fbird_num_fields($query_result): int { die; }
/**
* @param resource $query
* @alias ibase_num_params
*/
function fbird_num_params($query): int { die; }
/**
* @param resource $link_identifier
* @alias ibase_affected_rows
*/
function fbird_affected_rows($link_identifier = null): int|false { die; }
/**
* @param resource $query
* @alias ibase_query_affected_rows
*/
function fbird_query_affected_rows($query): int|false { die; }
/**
* @param resource $query_result
* @alias ibase_field_info
*/
function fbird_field_info($query_result, int $field_number): array|false { die; }
/**
* @param resource $query
* @alias ibase_param_info
*/
function fbird_param_info($query, int $field_number): array|false { die; }
/**
* @return resource|false
* @alias ibase_trans
*/
function fbird_trans(mixed ...$trans_args) { die; }
/**
* @param resource $link_identifier
* @alias ibase_commit
*/
function fbird_commit($link_identifier = null): bool { die; }
/**
* @param resource $link_identifier
* @alias ibase_rollback
*/
function fbird_rollback($link_identifier = null): bool { die; }
/**
* @param resource $link_identifier
* @alias ibase_commit_ret
*/
function fbird_commit_ret($link_identifier = null): bool { die; }
/**
* @param resource $link_identifier
* @alias ibase_rollback_ret
*/
function fbird_rollback_ret($link_identifier = null): bool { die; }
/**
* @param resource|string $link_identifier
* @param string $blob_id
* @alias ibase_blob_info
*/
function fbird_blob_info($link_identifier, $blob_id = UNKNOWN): array|false { die; }
/**
* @param resource $link_identifier
* @return resource|false
* @alias ibase_blob_create
*/
function fbird_blob_create($link_identifier = null) { die; }
/**
* @param resource $blob_handle
* @param string $data
* @alias ibase_blob_add
*/
function fbird_blob_add($blob_handle, $data): ?bool { die; }
/**
* @param resource $blob_handle
* @alias ibase_blob_cancel
*/
function fbird_blob_cancel($blob_handle): bool { die; }
/**
* @param resource $blob_handle
* @alias ibase_blob_close
*/
function fbird_blob_close($blob_handle): string|bool { die; }
/**
* @param resource|string $link_identifier
* @param string $blob_id
* @return resource|false
* @alias ibase_blob_open
*/
function fbird_blob_open($link_identifier, $blob_id = UNKNOWN) { die; }
/**
* @param resource $blob_handle
* @alias ibase_blob_get
*/
function fbird_blob_get($blob_handle, int $len): string|false { die; }
/**
* @param resource|string $link_identifier
* @param string $blob_id
* @alias ibase_blob_echo
*/
function fbird_blob_echo($link_identifier, $blob_id = UNKNOWN): bool { die; }
/**
* @param resource $link_identifier
* @param resource $file
* @alias ibase_blob_import
*/
function fbird_blob_import($link_identifier, $file = UNKNOWN): string|false { die; }
/** @alias ibase_errmsg */
function fbird_errmsg(): string|false { die; }
/** @alias ibase_errcode */
function fbird_errcode(): int|false { die; }
/**
* @param resource $service_handle
* @alias ibase_add_user
*/
function fbird_add_user($service_handle, string $user_name, string $password, ?string $first_name = null, ?string $middle_name = null, ?string $last_name = null): bool { die; }
/**
* @param resource $service_handle
* @alias ibase_modify_user
*/
function fbird_modify_user($service_handle, string $user_name, string $password, ?string $first_name = null, ?string $middle_name = null, ?string $last_name = null): bool { die; }
/**
* @param resource $service_handle
* @alias ibase_delete_user
*/
function fbird_delete_user($service_handle, string $user_name): bool { die; }
/**
* @return resource|false
* @alias ibase_service_attach
*/
function fbird_service_attach(?string $host = null, ?string $dba_username = null, ?string $dba_password = null) { die; }
/**
* @param resource $service_handle
* @alias ibase_service_detach
*/
function fbird_service_detach($service_handle): bool { die; }
/**
* @param resource $service_handle
* @alias ibase_backup
*/
function fbird_backup($service_handle, string $source_db, string $dest_file, int $options = 0, bool $verbose = false): string|bool { die; }
/**
* @param resource $service_handle
* @alias ibase_restore
*/
function fbird_restore($service_handle, string $source_file, string $dest_db, int $options = 0, bool $verbose = false): string|bool { die; }
/**
* @param resource $service_handle
* @alias ibase_maintain_db
*/
function fbird_maintain_db($service_handle, string $db, int $action, int $argument = 0): bool { die; }
/**
* @param resource $service_handle
* @alias ibase_db_info
*/
function fbird_db_info($service_handle, string $db, int $action, int $argument = 0): string|bool { die; }
/**
* @param resource $service_handle
* @alias ibase_server_info
*/
function fbird_server_info($service_handle, int $action): string|array|bool { die; }
/**
* @param resource|string $link_identifier
* @alias ibase_wait_event
*/
function fbird_wait_event($link_identifier, mixed ...$event): string|false { die; }
/**
* @param resource|callable $link_identifier
* @param callable|string $handler
* @return resource|false
* @alias ibase_set_event_handler
*/
function fbird_set_event_handler($link_identifier, $handler, mixed ...$event) { die; }
/**
* @param resource $event
* @alias ibase_free_event_handler
*/
function fbird_free_event_handler($event): bool { die; }
/** @alias ibase_get_client_version */
function fbird_get_client_version(): int { die; }
/** @alias ibase_get_client_major_version */
function fbird_get_client_major_version(): int { die; }
/** @alias ibase_get_client_minor_version */
function fbird_get_client_minor_version(): int { die; }