Repository navigation
Expand file tree
/
Copy pathinterbase.stub.php
More file actions
1050 lines (856 loc) · 24.2 KB
/
Copy pathinterbase.stub.php
File metadata and controls
1050 lines (856 loc) · 24.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
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
* @generate-class-entries
* @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!").
*/
/* Constants */
/**
* @var int
* @cvalue PHP_IBASE_DEFAULT
*/
const IBASE_DEFAULT = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_CREATE
*/
const IBASE_CREATE = UNKNOWN;
/**
* Deprecated, for BC only
* @var int
* @cvalue PHP_IBASE_FETCH_BLOBS
*/
const IBASE_TEXT = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_FETCH_BLOBS
*/
const IBASE_FETCH_BLOBS = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_UNIXTIME
*/
const IBASE_UNIXTIME = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_PHPDATE
*/
const IBASE_PHPDATE = UNKNOWN;
/**
* @var int
* @cvalue PHP_INTERBASE_VER
*/
const IBASE_VER = UNKNOWN;
/**
* Firebird API version of the headers this was built against: 25, 30, 40, 50.
* The loaded client may be older; IBASE_EFFECTIVE_VER is the lower of the two
* and is what callers should test. IBASE_EFFECTIVE_VER is registered in MINIT,
* as it is only known at load time.
* @var int
* @cvalue FB_API_VER
*/
const FB_API_VER = UNKNOWN;
/*
* Legacy/BC flags, combined via the ibase.legacy_flags ini setting; all on by default.
* e.g. ini_set('ibase.legacy_flags', IBASE_LEGACY_NONE) to opt into every fixed behaviour.
*/
/**
* @var int
* @cvalue PHP_IBASE_LEGACY_NONE
*/
const IBASE_LEGACY_NONE = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_LEGACY_ALL
*/
const IBASE_LEGACY_ALL = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_LEGACY_UNIXTIME
*/
const IBASE_LEGACY_UNIXTIME = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_LEGACY_QUERY_RESULT
*/
const IBASE_LEGACY_QUERY_RESULT = UNKNOWN;
/*
* Optional notices, combined via the ibase.warnings ini setting; all off by default.
* e.g. ini_set('ibase.warnings', IBASE_WARN_ALL)
*/
/**
* @var int
* @cvalue PHP_IBASE_WARN_NONE
*/
const IBASE_WARN_NONE = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_WARN_ALL
*/
const IBASE_WARN_ALL = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_WARN_IMPLICIT_CLOSE
*/
const IBASE_WARN_IMPLICIT_CLOSE = UNKNOWN;
/* Transactions */
/**
* @var int
* @cvalue PHP_IBASE_WRITE
*/
const IBASE_WRITE = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_READ
*/
const IBASE_READ = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_COMMITTED
*/
const IBASE_COMMITTED = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_CONSISTENCY
*/
const IBASE_CONSISTENCY = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_CONCURRENCY
*/
const IBASE_CONCURRENCY = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_REC_VERSION
*/
const IBASE_REC_VERSION = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_REC_NO_VERSION
*/
const IBASE_REC_NO_VERSION = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_NOWAIT
*/
const IBASE_NOWAIT = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_WAIT
*/
const IBASE_WAIT = UNKNOWN;
/**
* @var int
* @cvalue PHP_IBASE_LOCK_TIMEOUT
*/
const IBASE_LOCK_TIMEOUT = UNKNOWN;
/* Backup options */
/**
* @var int
* @cvalue isc_spb_bkp_ignore_checksums
*/
const IBASE_BKP_IGNORE_CHECKSUMS = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_bkp_ignore_limbo
*/
const IBASE_BKP_IGNORE_LIMBO = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_bkp_metadata_only
*/
const IBASE_BKP_METADATA_ONLY = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_bkp_no_garbage_collect
*/
const IBASE_BKP_NO_GARBAGE_COLLECT = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_bkp_old_descriptions
*/
const IBASE_BKP_OLD_DESCRIPTIONS = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_bkp_non_transportable
*/
const IBASE_BKP_NON_TRANSPORTABLE = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_bkp_convert
*/
const IBASE_BKP_CONVERT = UNKNOWN;
/* Restore options */
/**
* @var int
* @cvalue isc_spb_res_deactivate_idx
*/
const IBASE_RES_DEACTIVATE_IDX = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_res_no_shadow
*/
const IBASE_RES_NO_SHADOW = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_res_no_validity
*/
const IBASE_RES_NO_VALIDITY = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_res_one_at_a_time
*/
const IBASE_RES_ONE_AT_A_TIME = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_res_replace
*/
const IBASE_RES_REPLACE = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_res_create
*/
const IBASE_RES_CREATE = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_res_use_all_space
*/
const IBASE_RES_USE_ALL_SPACE = UNKNOWN;
/* Manage options */
/**
* @var int
* @cvalue isc_spb_prp_page_buffers
*/
const IBASE_PRP_PAGE_BUFFERS = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_sweep_interval
*/
const IBASE_PRP_SWEEP_INTERVAL = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_shutdown_db
*/
const IBASE_PRP_SHUTDOWN_DB = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_deny_new_transactions
*/
const IBASE_PRP_DENY_NEW_TRANSACTIONS = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_deny_new_attachments
*/
const IBASE_PRP_DENY_NEW_ATTACHMENTS = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_reserve_space
*/
const IBASE_PRP_RESERVE_SPACE = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_res_use_full
*/
const IBASE_PRP_RES_USE_FULL = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_res
*/
const IBASE_PRP_RES = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_write_mode
*/
const IBASE_PRP_WRITE_MODE = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_wm_async
*/
const IBASE_PRP_WM_ASYNC = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_wm_sync
*/
const IBASE_PRP_WM_SYNC = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_access_mode
*/
const IBASE_PRP_ACCESS_MODE = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_am_readonly
*/
const IBASE_PRP_AM_READONLY = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_am_readwrite
*/
const IBASE_PRP_AM_READWRITE = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_set_sql_dialect
*/
const IBASE_PRP_SET_SQL_DIALECT = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_activate
*/
const IBASE_PRP_ACTIVATE = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_prp_db_online
*/
const IBASE_PRP_DB_ONLINE = UNKNOWN;
/* Repair options */
/**
* @var int
* @cvalue isc_spb_rpr_check_db
*/
const IBASE_RPR_CHECK_DB = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_rpr_ignore_checksum
*/
const IBASE_RPR_IGNORE_CHECKSUM = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_rpr_kill_shadows
*/
const IBASE_RPR_KILL_SHADOWS = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_rpr_mend_db
*/
const IBASE_RPR_MEND_DB = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_rpr_validate_db
*/
const IBASE_RPR_VALIDATE_DB = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_rpr_full
*/
const IBASE_RPR_FULL = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_rpr_sweep_db
*/
const IBASE_RPR_SWEEP_DB = UNKNOWN;
/* Db info arguments */
/**
* @var int
* @cvalue isc_spb_sts_data_pages
*/
const IBASE_STS_DATA_PAGES = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_sts_db_log
*/
const IBASE_STS_DB_LOG = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_sts_hdr_pages
*/
const IBASE_STS_HDR_PAGES = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_sts_idx_pages
*/
const IBASE_STS_IDX_PAGES = UNKNOWN;
/**
* @var int
* @cvalue isc_spb_sts_sys_relations
*/
const IBASE_STS_SYS_RELATIONS = UNKNOWN;
/* Server info arguments */
/**
* @var int
* @cvalue isc_info_svc_server_version
*/
const IBASE_SVC_SERVER_VERSION = UNKNOWN;
/**
* @var int
* @cvalue isc_info_svc_implementation
*/
const IBASE_SVC_IMPLEMENTATION = UNKNOWN;
/**
* @var int
* @cvalue isc_info_svc_get_env
*/
const IBASE_SVC_GET_ENV = UNKNOWN;
/**
* @var int
* @cvalue isc_info_svc_get_env_lock
*/
const IBASE_SVC_GET_ENV_LOCK = UNKNOWN;
/**
* @var int
* @cvalue isc_info_svc_get_env_msg
*/
const IBASE_SVC_GET_ENV_MSG = UNKNOWN;
/**
* @var int
* @cvalue isc_info_svc_user_dbpath
*/
const IBASE_SVC_USER_DBPATH = UNKNOWN;
/**
* @var int
* @cvalue isc_info_svc_svr_db_info
*/
const IBASE_SVC_SVR_DB_INFO = UNKNOWN;
/**
* @var int
* @cvalue isc_info_svc_get_users
*/
const IBASE_SVC_GET_USERS = UNKNOWN;
/** @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; }
/**
* Rows changed by the last statement in the transaction.
* 0 for ... RETURNING on Firebird 5 (except INSERT ... VALUES); use ibase_query_affected_rows().
*
* @param resource $link_identifier connection or transaction
*/
function ibase_affected_rows($link_identifier = null): int|false { die; }
/**
* Rows changed by the last execution of the query. Each call costs one round trip to the server.
*
* @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