-
Notifications
You must be signed in to change notification settings - Fork 7
/
interbase.php
1147 lines (1043 loc) · 35.4 KB
/
interbase.php
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
// Start of interbase v.7.0.4-7ubuntu2
/**
* (PHP 5, PHP 7)<br/>
* Open a connection to a database
* @link http://php.net/manual/en/function.ibase-connect.php
* @param string $database [optional] <p>
* The <i>database</i> argument has to be a valid path to
* database file on the server it resides on. If the server is not local,
* it must be prefixed with either 'hostname:' (TCP/IP), 'hostname/port:'
* (TCP/IP with interbase server on custom TCP port), '//hostname/'
* (NetBEUI), depending on the connection
* protocol used.
* </p>
* @param string $username [optional] <p>
* The user name. Can be set with the
* ibase.default_user <i>php.ini</i> directive.
* </p>
* @param string $password [optional] <p>
* The password for <i>username</i>. Can be set with the
* ibase.default_password <i>php.ini</i> directive.
* </p>
* @param string $charset [optional] <p>
* <i>charset</i> is the default character set for a
* database.
* </p>
* @param int $buffers [optional] <p>
* <i>buffers</i> is the number of database buffers to
* allocate for the server-side cache. If 0 or omitted, server chooses
* its own default.
* </p>
* @param int $dialect [optional] <p>
* <i>dialect</i> selects the default SQL dialect for any
* statement executed within a connection, and it defaults to the highest
* one supported by client libraries.
* </p>
* @param string $role [optional] <p>
* Functional only with InterBase 5 and up.
* </p>
* @param int $sync [optional]
* @return resource an Firebird/InterBase link identifier on success, or <b>FALSE</b> on error.
*/
function ibase_connect(string $database = null, string $username = null, string $password = null, string $charset = null, int $buffers = null, int $dialect = null, string $role = null, int $sync = null) {}
/**
* (PHP 5, PHP 7)<br/>
* Open a persistent connection to an InterBase database
* @link http://php.net/manual/en/function.ibase-pconnect.php
* @param string $database [optional] <p>
* The <i>database</i> argument has to be a valid path to
* database file on the server it resides on. If the server is not local,
* it must be prefixed with either 'hostname:' (TCP/IP), '//hostname/'
* (NetBEUI) or 'hostname@' (IPX/SPX), depending on the connection
* protocol used.
* </p>
* @param string $username [optional] <p>
* The user name. Can be set with the
* ibase.default_user <i>php.ini</i> directive.
* </p>
* @param string $password [optional] <p>
* The password for <i>username</i>. Can be set with the
* ibase.default_password <i>php.ini</i> directive.
* </p>
* @param string $charset [optional] <p>
* <i>charset</i> is the default character set for a
* database.
* </p>
* @param int $buffers [optional] <p>
* <i>buffers</i> is the number of database buffers to
* allocate for the server-side cache. If 0 or omitted, server chooses
* its own default.
* </p>
* @param int $dialect [optional] <p>
* <i>dialect</i> selects the default SQL dialect for any
* statement executed within a connection, and it defaults to the highest
* one supported by client libraries. Functional only with InterBase 6
* and up.
* </p>
* @param string $role [optional] <p>
* Functional only with InterBase 5 and up.
* </p>
* @param int $sync [optional]
* @return resource an InterBase link identifier on success, or <b>FALSE</b> on error.
*/
function ibase_pconnect(string $database = null, string $username = null, string $password = null, string $charset = null, int $buffers = null, int $dialect = null, string $role = null, int $sync = null) {}
/**
* (PHP 5, PHP 7)<br/>
* Close a connection to an InterBase database
* @link http://php.net/manual/en/function.ibase-close.php
* @param resource $connection_id [optional] <p>
* An InterBase link identifier returned from
* <b>ibase_connect</b>. If omitted, the last opened link
* is assumed.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_close($connection_id = null): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Drops a database
* @link http://php.net/manual/en/function.ibase-drop-db.php
* @param resource $connection [optional] <p>
* An InterBase link identifier. If omitted, the last opened link is
* assumed.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_drop_db($connection = null): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Execute a query on an InterBase database
* @link http://php.net/manual/en/function.ibase-query.php
* @param resource $link_identifier [optional] <p>
* An InterBase link identifier. If omitted, the last opened link is
* assumed.
* </p>
* @param string $query <p>
* An InterBase query.
* </p>
* @param int $bind_args [optional]
* @return resource If the query raises an error, returns <b>FALSE</b>. If it is successful and
* there is a (possibly empty) result set (such as with a SELECT query),
* returns a result identifier. If the query was successful and there were
* no results, returns <b>TRUE</b>.
* </p>
* <p>
* In PHP 5.0.0 and up, this function will return the number of rows
* affected by the query for INSERT, UPDATE and DELETE statements. In order
* to retain backward compatibility, it will return <b>TRUE</b> for these
* statements if the query succeeded without affecting any rows.
*/
function ibase_query($link_identifier = null, string $query, int $bind_args = null) {}
/**
* (PHP 5, PHP 7)<br/>
* Fetch a row from an InterBase database
* @link http://php.net/manual/en/function.ibase-fetch-row.php
* @param resource $result_identifier <p>
* An InterBase result identifier.
* </p>
* @param int $fetch_flag [optional] <p>
* <i>fetch_flag</i> is a combination of the constants
* <b>IBASE_TEXT</b> and <b>IBASE_UNIXTIME</b>
* ORed together. Passing <b>IBASE_TEXT</b> will cause this
* function to return BLOB contents instead of BLOB ids. Passing
* <b>IBASE_UNIXTIME</b> will cause this function to return
* date/time values as Unix timestamps instead of as formatted strings.
* </p>
* @return array an array that corresponds to the fetched row, or <b>FALSE</b> if there
* are no more rows. Each result column is stored in an array offset,
* starting at offset 0.
*/
function ibase_fetch_row($result_identifier, int $fetch_flag = 0): array {}
/**
* (PHP 5, PHP 7)<br/>
* Fetch a result row from a query as an associative array
* @link http://php.net/manual/en/function.ibase-fetch-assoc.php
* @param resource $result <p>
* The result handle.
* </p>
* @param int $fetch_flag [optional] <p>
* <i>fetch_flag</i> is a combination of the constants
* <b>IBASE_TEXT</b> and <b>IBASE_UNIXTIME</b>
* ORed together. Passing <b>IBASE_TEXT</b> will cause this
* function to return BLOB contents instead of BLOB ids. Passing
* <b>IBASE_UNIXTIME</b> will cause this function to return
* date/time values as Unix timestamps instead of as formatted strings.
* </p>
* @return array an associative array that corresponds to the fetched row.
* Subsequent calls will return the next row in the result set, or <b>FALSE</b> if
* there are no more rows.
*/
function ibase_fetch_assoc($result, int $fetch_flag = 0): array {}
/**
* (PHP 5, PHP 7)<br/>
* Get an object from a InterBase database
* @link http://php.net/manual/en/function.ibase-fetch-object.php
* @param resource $result_id <p>
* An InterBase result identifier obtained either by
* <b>ibase_query</b> or <b>ibase_execute</b>.
* </p>
* @param int $fetch_flag [optional] <p>
* <i>fetch_flag</i> is a combination of the constants
* <b>IBASE_TEXT</b> and <b>IBASE_UNIXTIME</b>
* ORed together. Passing <b>IBASE_TEXT</b> will cause this
* function to return BLOB contents instead of BLOB ids. Passing
* <b>IBASE_UNIXTIME</b> will cause this function to return
* date/time values as Unix timestamps instead of as formatted strings.
* </p>
* @return object an object with the next row information, or <b>FALSE</b> if there are
* no more rows.
*/
function ibase_fetch_object($result_id, int $fetch_flag = 0) {}
/**
* (PHP 5, PHP 7)<br/>
* Free a result set
* @link http://php.net/manual/en/function.ibase-free-result.php
* @param resource $result_identifier <p>
* A result set created by <b>ibase_query</b> or
* <b>ibase_execute</b>.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_free_result($result_identifier): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Assigns a name to a result set
* @link http://php.net/manual/en/function.ibase-name-result.php
* @param resource $result <p>
* An InterBase result set.
* </p>
* @param string $name <p>
* The name to be assigned.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_name_result($result, string $name): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Prepare a query for later binding of parameter placeholders and execution
* @link http://php.net/manual/en/function.ibase-prepare.php
* @param string $query <p>
* An InterBase query.
* </p>
* @return resource a prepared query handle, or <b>FALSE</b> on error.
*/
function ibase_prepare(string $query) {}
/**
* (PHP 5, PHP 7)<br/>
* Execute a previously prepared query
* @link http://php.net/manual/en/function.ibase-execute.php
* @param resource $query <p>
* An InterBase query prepared by <b>ibase_prepare</b>.
* </p>
* @param mixed $bind_arg [optional]
* @param mixed $_ [optional]
* @return resource If the query raises an error, returns <b>FALSE</b>. If it is successful and
* there is a (possibly empty) result set (such as with a SELECT query),
* returns a result identifier. If the query was successful and there were
* no results, returns <b>TRUE</b>.
* </p>
* <p>
* This function returns the number of rows affected by
* the query (if > 0 and applicable to the statement type). A query that
* succeeded, but did not affect any rows (e.g. an UPDATE of a non-existent
* record) will return <b>TRUE</b>.
*/
function ibase_execute($query, $bind_arg = null, $_ = null) {}
/**
* (PHP 5, PHP 7)<br/>
* Free memory allocated by a prepared query
* @link http://php.net/manual/en/function.ibase-free-query.php
* @param resource $query <p>
* A query prepared with <b>ibase_prepare</b>.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_free_query($query): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Increments the named generator and returns its new value
* @link http://php.net/manual/en/function.ibase-gen-id.php
* @param string $generator
* @param int $increment [optional]
* @param resource $link_identifier [optional]
* @return mixed new generator value as integer, or as string if the value is too big.
*/
function ibase_gen_id(string $generator, int $increment = 1, $link_identifier = null) {}
/**
* (PHP 5, PHP 7)<br/>
* Get the number of fields in a result set
* @link http://php.net/manual/en/function.ibase-num-fields.php
* @param resource $result_id <p>
* An InterBase result identifier.
* </p>
* @return int the number of fields as an integer.
*/
function ibase_num_fields($result_id): int {}
/**
* (PHP 5, PHP 7)<br/>
* Return the number of parameters in a prepared query
* @link http://php.net/manual/en/function.ibase-num-params.php
* @param resource $query <p>
* The prepared query handle.
* </p>
* @return int the number of parameters as an integer.
*/
function ibase_num_params($query): int {}
/**
* (PHP 5, PHP 7)<br/>
* Return the number of rows that were affected by the previous query
* @link http://php.net/manual/en/function.ibase-affected-rows.php
* @param resource $link_identifier [optional] <p>
* A transaction context. If <i>link_identifier</i> is a
* connection resource, its default transaction is used.
* </p>
* @return int the number of rows as an integer.
*/
function ibase_affected_rows($link_identifier = null): int {}
/**
* (PHP 5, PHP 7)<br/>
* Get information about a field
* @link http://php.net/manual/en/function.ibase-field-info.php
* @param resource $result <p>
* An InterBase result identifier.
* </p>
* @param int $field_number <p>
* Field offset.
* </p>
* @return array an array with the following keys: name,
* alias, relation,
* length and type.
*/
function ibase_field_info($result, int $field_number): array {}
/**
* (PHP 5, PHP 7)<br/>
* Return information about a parameter in a prepared query
* @link http://php.net/manual/en/function.ibase-param-info.php
* @param resource $query <p>
* An InterBase prepared query handle.
* </p>
* @param int $param_number <p>
* Parameter offset.
* </p>
* @return array an array with the following keys: name,
* alias, relation,
* length and type.
*/
function ibase_param_info($query, int $param_number): array {}
/**
* (PHP 5, PHP 7)<br/>
* Begin a transaction
* @link http://php.net/manual/en/function.ibase-trans.php
* @param int $trans_args [optional] <p>
* <i>trans_args</i> can be a combination of
* <b>IBASE_READ</b>,
* <b>IBASE_WRITE</b>,
* <b>IBASE_COMMITTED</b>,
* <b>IBASE_CONSISTENCY</b>,
* <b>IBASE_CONCURRENCY</b>,
* <b>IBASE_REC_VERSION</b>,
* <b>IBASE_REC_NO_VERSION</b>,
* <b>IBASE_WAIT</b> and
* <b>IBASE_NOWAIT</b>.
* </p>
* @param resource $link_identifier [optional] <p>
* An InterBase link identifier. If omitted, the last opened link is
* assumed.
* </p>
* @return resource a transaction handle, or <b>FALSE</b> on error.
*/
function ibase_trans(int $trans_args = null, $link_identifier = null) {}
/**
* (PHP 5, PHP 7)<br/>
* Commit a transaction
* @link http://php.net/manual/en/function.ibase-commit.php
* @param resource $link_or_trans_identifier [optional] <p>
* If called without an argument, this function commits the default
* transaction of the default link. If the argument is a connection
* identifier, the default transaction of the corresponding connection
* will be committed. If the argument is a transaction identifier, the
* corresponding transaction will be committed.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_commit($link_or_trans_identifier = null): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Roll back a transaction
* @link http://php.net/manual/en/function.ibase-rollback.php
* @param resource $link_or_trans_identifier [optional] <p>
* If called without an argument, this function rolls back the default
* transaction of the default link. If the argument is a connection
* identifier, the default transaction of the corresponding connection
* will be rolled back. If the argument is a transaction identifier, the
* corresponding transaction will be rolled back.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_rollback($link_or_trans_identifier = null): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Commit a transaction without closing it
* @link http://php.net/manual/en/function.ibase-commit-ret.php
* @param resource $link_or_trans_identifier [optional] <p>
* If called without an argument, this function commits the default
* transaction of the default link. If the argument is a connection
* identifier, the default transaction of the corresponding connection
* will be committed. If the argument is a transaction identifier, the
* corresponding transaction will be committed. The transaction context
* will be retained, so statements executed from within this transaction
* will not be invalidated.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_commit_ret($link_or_trans_identifier = null): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Roll back a transaction without closing it
* @link http://php.net/manual/en/function.ibase-rollback-ret.php
* @param resource $link_or_trans_identifier [optional] <p>
* If called without an argument, this function rolls back the default
* transaction of the default link. If the argument is a connection
* identifier, the default transaction of the corresponding connection
* will be rolled back. If the argument is a transaction identifier, the
* corresponding transaction will be rolled back. The transaction context
* will be retained, so statements executed from within this transaction
* will not be invalidated.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_rollback_ret($link_or_trans_identifier = null): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Return blob length and other useful info
* @link http://php.net/manual/en/function.ibase-blob-info.php
* @param resource $link_identifier <p>
* An InterBase link identifier. If omitted, the last opened link is
* assumed.
* </p>
* @param string $blob_id <p>
* A BLOB id.
* </p>
* @return array an array containing information about a BLOB. The information returned
* consists of the length of the BLOB, the number of segments it contains, the size
* of the largest segment, and whether it is a stream BLOB or a segmented BLOB.
*/
function ibase_blob_info($link_identifier, string $blob_id): array {}
/**
* (PHP 5, PHP 7)<br/>
* Create a new blob for adding data
* @link http://php.net/manual/en/function.ibase-blob-create.php
* @param resource $link_identifier [optional] <p>
* An InterBase link identifier. If omitted, the last opened link is
* assumed.
* </p>
* @return resource a BLOB handle for later use with
* <b>ibase_blob_add</b> or <b>FALSE</b> on failure.
*/
function ibase_blob_create($link_identifier = null) {}
/**
* (PHP 5, PHP 7)<br/>
* Add data into a newly created blob
* @link http://php.net/manual/en/function.ibase-blob-add.php
* @param resource $blob_handle <p>
* A blob handle opened with <b>ibase_blob_create</b>.
* </p>
* @param string $data <p>
* The data to be added.
* </p>
* @return void No value is returned.
*/
function ibase_blob_add($blob_handle, string $data) {}
/**
* (PHP 5, PHP 7)<br/>
* Cancel creating blob
* @link http://php.net/manual/en/function.ibase-blob-cancel.php
* @param resource $blob_handle <p>
* A BLOB handle opened with <b>ibase_blob_create</b>.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_blob_cancel($blob_handle): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Close blob
* @link http://php.net/manual/en/function.ibase-blob-close.php
* @param resource $blob_handle <p>
* A BLOB handle opened with <b>ibase_blob_create</b> or
* <b>ibase_blob_open</b>.
* </p>
* @return mixed If the BLOB was being read, this function returns <b>TRUE</b> on success, if
* the BLOB was being written to, this function returns a string containing
* the BLOB id that has been assigned to it by the database. On failure, this
* function returns <b>FALSE</b>.
*/
function ibase_blob_close($blob_handle) {}
/**
* (PHP 5, PHP 7)<br/>
* Open blob for retrieving data parts
* @link http://php.net/manual/en/function.ibase-blob-open.php
* @param resource $link_identifier <p>
* An InterBase link identifier. If omitted, the last opened link is
* assumed.
* </p>
* @param string $blob_id <p>
* A BLOB id.
* </p>
* @return resource a BLOB handle for later use with
* <b>ibase_blob_get</b> or <b>FALSE</b> on failure.
*/
function ibase_blob_open($link_identifier, string $blob_id) {}
/**
* (PHP 5, PHP 7)<br/>
* Get len bytes data from open blob
* @link http://php.net/manual/en/function.ibase-blob-get.php
* @param resource $blob_handle <p>
* A BLOB handle opened with <b>ibase_blob_open</b>.
* </p>
* @param int $len <p>
* Size of returned data.
* </p>
* @return string at most <i>len</i> bytes from the BLOB, or <b>FALSE</b>
* on failure.
*/
function ibase_blob_get($blob_handle, int $len): string {}
/**
* (PHP 5, PHP 7)<br/>
* Output blob contents to browser
* @link http://php.net/manual/en/function.ibase-blob-echo.php
* @param string $blob_id
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_blob_echo(string $blob_id): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Create blob, copy file in it, and close it
* @link http://php.net/manual/en/function.ibase-blob-import.php
* @param resource $link_identifier <p>
* An InterBase link identifier. If omitted, the last opened link is
* assumed.
* </p>
* @param resource $file_handle <p>
* The file handle is a handle returned by <b>fopen</b>.
* </p>
* @return string the BLOB id on success, or <b>FALSE</b> on error.
*/
function ibase_blob_import($link_identifier, $file_handle): string {}
/**
* (PHP 5, PHP 7)<br/>
* Return error messages
* @link http://php.net/manual/en/function.ibase-errmsg.php
* @return string the error message as a string, or <b>FALSE</b> if no error occurred.
*/
function ibase_errmsg(): string {}
/**
* (PHP 5, PHP 7)<br/>
* Return an error code
* @link http://php.net/manual/en/function.ibase-errcode.php
* @return int the error code as an integer, or <b>FALSE</b> if no error occurred.
*/
function ibase_errcode(): int {}
/**
* (PHP 5, PHP 7)<br/>
* Add a user to a security database
* @link http://php.net/manual/en/function.ibase-add-user.php
* @param resource $service_handle
* @param string $user_name
* @param string $password
* @param string $first_name [optional]
* @param string $middle_name [optional]
* @param string $last_name [optional]
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_add_user($service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Modify a user to a security database
* @link http://php.net/manual/en/function.ibase-modify-user.php
* @param resource $service_handle
* @param string $user_name
* @param string $password
* @param string $first_name [optional]
* @param string $middle_name [optional]
* @param string $last_name [optional]
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_modify_user($service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Delete a user from a security database
* @link http://php.net/manual/en/function.ibase-delete-user.php
* @param resource $service_handle
* @param string $user_name
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_delete_user($service_handle, string $user_name): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Connect to the service manager
* @link http://php.net/manual/en/function.ibase-service-attach.php
* @param string $host
* @param string $dba_username
* @param string $dba_password
* @return resource
*/
function ibase_service_attach(string $host, string $dba_username, string $dba_password) {}
/**
* (PHP 5, PHP 7)<br/>
* Disconnect from the service manager
* @link http://php.net/manual/en/function.ibase-service-detach.php
* @param resource $service_handle
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_service_detach($service_handle): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Initiates a backup task in the service manager and returns immediately
* @link http://php.net/manual/en/function.ibase-backup.php
* @param resource $service_handle
* @param string $source_db
* @param string $dest_file
* @param int $options [optional]
* @param bool $verbose [optional]
* @return mixed
*/
function ibase_backup($service_handle, string $source_db, string $dest_file, int $options = 0, bool $verbose = false) {}
/**
* (PHP 5, PHP 7)<br/>
* Initiates a restore task in the service manager and returns immediately
* @link http://php.net/manual/en/function.ibase-restore.php
* @param resource $service_handle
* @param string $source_file
* @param string $dest_db
* @param int $options [optional]
* @param bool $verbose [optional]
* @return mixed
*/
function ibase_restore($service_handle, string $source_file, string $dest_db, int $options = 0, bool $verbose = false) {}
/**
* (PHP 5, PHP 7)<br/>
* Execute a maintenance command on the database server
* @link http://php.net/manual/en/function.ibase-maintain-db.php
* @param resource $service_handle
* @param string $db
* @param int $action
* @param int $argument [optional]
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_maintain_db($service_handle, string $db, int $action, int $argument = 0): bool {}
/**
* (PHP 5, PHP 7)<br/>
* Request statistics about a database
* @link http://php.net/manual/en/function.ibase-db-info.php
* @param resource $service_handle
* @param string $db
* @param int $action
* @param int $argument [optional]
* @return string
*/
function ibase_db_info($service_handle, string $db, int $action, int $argument = 0): string {}
/**
* (PHP 5, PHP 7)<br/>
* Request information about a database server
* @link http://php.net/manual/en/function.ibase-server-info.php
* @param resource $service_handle
* @param int $action
* @return string
*/
function ibase_server_info($service_handle, int $action): string {}
/**
* (PHP 5, PHP 7)<br/>
* Wait for an event to be posted by the database
* @link http://php.net/manual/en/function.ibase-wait-event.php
* @param string $event_name1 <p>
* The event name.
* </p>
* @param string $event_name2 [optional]
* @param string $_ [optional]
* @return string the name of the event that was posted.
*/
function ibase_wait_event(string $event_name1, string $event_name2 = null, string $_ = null): string {}
/**
* (PHP 5, PHP 7)<br/>
* Register a callback function to be called when events are posted
* @link http://php.net/manual/en/function.ibase-set-event-handler.php
* @param callable $event_handler <p>
* The callback is called with the event name and the link resource as
* arguments whenever one of the specified events is posted by the
* database.
* </p>
* <p>
* The callback must return <b>FALSE</b> if the event handler should be
* canceled. Any other return value is ignored. This function accepts up
* to 15 event arguments.
* </p>
* @param string $event_name1 <p>
* An event name.
* </p>
* @param string $event_name2 [optional] <p>
* At most 15 events allowed.
* </p>
* @param string $_ [optional]
* @return resource The return value is an event resource. This resource can be used to free
* the event handler using <b>ibase_free_event_handler</b>.
*/
function ibase_set_event_handler(callable $event_handler, string $event_name1, string $event_name2 = null, string $_ = null) {}
/**
* (PHP 5, PHP 7)<br/>
* Cancels a registered event handler
* @link http://php.net/manual/en/function.ibase-free-event-handler.php
* @param resource $event <p>
* An event resource, created by
* <b>ibase_set_event_handler</b>.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function ibase_free_event_handler($event): bool {}
/**
* @param $database
* @param $username [optional]
* @param $password [optional]
* @param $charset [optional]
* @param $buffers [optional]
* @param $dialect [optional]
* @param $role [optional]
*/
function fbird_connect($database, $username, $password, $charset, $buffers, $dialect, $role) {}
/**
* @param $database
* @param $username [optional]
* @param $password [optional]
* @param $charset [optional]
* @param $buffers [optional]
* @param $dialect [optional]
* @param $role [optional]
*/
function fbird_pconnect($database, $username, $password, $charset, $buffers, $dialect, $role) {}
/**
* @param $link_identifier [optional]
*/
function fbird_close($link_identifier) {}
/**
* @param $link_identifier [optional]
*/
function fbird_drop_db($link_identifier) {}
/**
* @param $link_identifier [optional]
* @param $link_identifier [optional]
* @param $query [optional]
* @param $bind_arg [optional]
* @param $bind_arg [optional]
*/
function fbird_query($link_identifier, $link_identifier, $query, $bind_arg, $bind_arg) {}
/**
* @param $result
* @param $fetch_flags [optional]
*/
function fbird_fetch_row($result, $fetch_flags) {}
/**
* @param $result
* @param $fetch_flags [optional]
*/
function fbird_fetch_assoc($result, $fetch_flags) {}
/**
* @param $result
* @param $fetch_flags [optional]
*/
function fbird_fetch_object($result, $fetch_flags) {}
/**
* @param $result
*/
function fbird_free_result($result) {}
/**
* @param $result
* @param $name
*/
function fbird_name_result($result, $name) {}
/**
* @param $link_identifier [optional]
* @param $query [optional]
*/
function fbird_prepare($link_identifier, $query) {}
/**
* @param $query
* @param $bind_arg [optional]
* @param $bind_arg [optional]
*/
function fbird_execute($query, $bind_arg, $bind_arg) {}
/**
* @param $query
*/
function fbird_free_query($query) {}
/**
* @param $generator
* @param $increment [optional]
* @param $link_identifier [optional]
*/
function fbird_gen_id($generator, $increment, $link_identifier) {}
/**
* @param $query_result
*/
function fbird_num_fields($query_result) {}
/**
* @param $query
*/
function fbird_num_params($query) {}
/**
* @param $link_identifier [optional]
*/
function fbird_affected_rows($link_identifier) {}
/**
* @param $query_result
* @param $field_number
*/
function fbird_field_info($query_result, $field_number) {}
/**
* @param $query
* @param $field_number
*/
function fbird_param_info($query, $field_number) {}
/**
* @param $trans_args [optional]
* @param $link_identifier [optional]
* @param $trans_args [optional]
* @param $link_identifier [optional]
*/
function fbird_trans($trans_args, $link_identifier, $trans_args, $link_identifier) {}
/**
* @param $link_identifier
*/
function fbird_commit($link_identifier) {}
/**
* @param $link_identifier
*/
function fbird_rollback($link_identifier) {}
/**
* @param $link_identifier
*/
function fbird_commit_ret($link_identifier) {}
/**
* @param $link_identifier
*/
function fbird_rollback_ret($link_identifier) {}
/**
* @param $link_identifier [optional]
* @param $blob_id [optional]
*/
function fbird_blob_info($link_identifier, $blob_id) {}
/**
* @param $link_identifier [optional]
*/
function fbird_blob_create($link_identifier) {}
/**
* @param $blob_handle
* @param $data
*/
function fbird_blob_add($blob_handle, $data) {}
/**
* @param $blob_handle
*/
function fbird_blob_cancel($blob_handle) {}
/**
* @param $blob_handle
*/
function fbird_blob_close($blob_handle) {}
/**
* @param $link_identifier [optional]
* @param $blob_id [optional]
*/
function fbird_blob_open($link_identifier, $blob_id) {}
/**
* @param $blob_handle
* @param $len
*/
function fbird_blob_get($blob_handle, $len) {}
/**
* @param $link_identifier [optional]
* @param $blob_id [optional]
*/
function fbird_blob_echo($link_identifier, $blob_id) {}
/**
* @param $link_identifier [optional]
* @param $file [optional]
*/
function fbird_blob_import($link_identifier, $file) {}
function fbird_errmsg() {}
function fbird_errcode() {}
/**
* @param $service_handle
* @param $user_name
* @param $password
* @param $first_name [optional]
* @param $middle_name [optional]
* @param $last_name [optional]
*/
function fbird_add_user($service_handle, $user_name, $password, $first_name, $middle_name, $last_name) {}
/**
* @param $service_handle
* @param $user_name
* @param $password
* @param $first_name [optional]
* @param $middle_name [optional]
* @param $last_name [optional]
*/
function fbird_modify_user($service_handle, $user_name, $password, $first_name, $middle_name, $last_name) {}
/**
* @param $service_handle
* @param $user_name
* @param $password
* @param $first_name [optional]
* @param $middle_name [optional]
* @param $last_name [optional]
*/
function fbird_delete_user($service_handle, $user_name, $password, $first_name, $middle_name, $last_name) {}
/**
* @param $host
* @param $dba_username
* @param $dba_password
*/
function fbird_service_attach($host, $dba_username, $dba_password) {}
/**
* @param $service_handle
*/
function fbird_service_detach($service_handle) {}
/**
* @param $service_handle
* @param $source_db
* @param $dest_file
* @param $options [optional]
* @param $verbose [optional]
*/