xref: /PHP-8.2/ext/oci8/oci8.stub.php (revision de90edc4)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @var int
7 * @cvalue OCI_DEFAULT
8 */
9const OCI_DEFAULT = UNKNOWN;
10/**
11 * @var int
12 * @cvalue OCI_SYSOPER
13 */
14const OCI_SYSOPER = UNKNOWN;
15/**
16 * @var int
17 * @cvalue OCI_SYSDBA
18 */
19const OCI_SYSDBA = UNKNOWN;
20/**
21 * @var int
22 * @cvalue PHP_OCI_CRED_EXT
23 */
24const OCI_CRED_EXT = UNKNOWN;
25/**
26 * @var int
27 * @cvalue OCI_DESCRIBE_ONLY
28 */
29const OCI_DESCRIBE_ONLY = UNKNOWN;
30/**
31 * @var int
32 * @cvalue OCI_COMMIT_ON_SUCCESS
33 */
34const OCI_COMMIT_ON_SUCCESS = UNKNOWN;
35/**
36 * @var int
37 * @cvalue OCI_DEFAULT
38 */
39const OCI_NO_AUTO_COMMIT = UNKNOWN;
40/**
41 * @var int
42 * @cvalue OCI_EXACT_FETCH
43 */
44const OCI_EXACT_FETCH = UNKNOWN;
45
46/* for $LOB->seek() */
47
48/**
49 * @var int
50 * @cvalue PHP_OCI_SEEK_SET
51 */
52const OCI_SEEK_SET = UNKNOWN;
53/**
54 * @var int
55 * @cvalue PHP_OCI_SEEK_CUR
56 */
57const OCI_SEEK_CUR = UNKNOWN;
58/**
59 * @var int
60 * @cvalue PHP_OCI_SEEK_END
61 */
62const OCI_SEEK_END = UNKNOWN;
63
64/*	for $LOB->flush() */
65
66/**
67 * @var int
68 * @cvalue OCI_LOB_BUFFER_FREE
69 */
70const OCI_LOB_BUFFER_FREE = UNKNOWN;
71
72/* for OCIBindByName (real "oci" names + short "php" names */
73
74/**
75 * @var int
76 * @cvalue SQLT_BFILEE
77 */
78const SQLT_BFILEE = UNKNOWN;
79/**
80 * @var int
81 * @cvalue SQLT_CFILEE
82 */
83const SQLT_CFILEE = UNKNOWN;
84/**
85 * @var int
86 * @cvalue SQLT_CLOB
87 */
88const SQLT_CLOB = UNKNOWN;
89/**
90 * @var int
91 * @cvalue SQLT_BLOB
92 */
93const SQLT_BLOB = UNKNOWN;
94/**
95 * @var int
96 * @cvalue SQLT_RDD
97 */
98const SQLT_RDD = UNKNOWN;
99/**
100 * @var int
101 * @cvalue SQLT_INT
102 */
103const SQLT_INT = UNKNOWN;
104/**
105 * @var int
106 * @cvalue SQLT_NUM
107 */
108const SQLT_NUM = UNKNOWN;
109/**
110 * @var int
111 * @cvalue SQLT_RSET
112 */
113const SQLT_RSET = UNKNOWN;
114/**
115 * @var int
116 * @cvalue SQLT_AFC
117 */
118const SQLT_AFC = UNKNOWN;
119/**
120 * @var int
121 * @cvalue SQLT_CHR
122 */
123const SQLT_CHR = UNKNOWN;
124/**
125 * @var int
126 * @cvalue SQLT_VCS
127 */
128const SQLT_VCS = UNKNOWN;
129/**
130 * @var int
131 * @cvalue SQLT_AVC
132 */
133const SQLT_AVC = UNKNOWN;
134/**
135 * @var int
136 * @cvalue SQLT_STR
137 */
138const SQLT_STR = UNKNOWN;
139/**
140 * @var int
141 * @cvalue SQLT_LVC
142 */
143const SQLT_LVC = UNKNOWN;
144/**
145 * @var int
146 * @cvalue SQLT_FLT
147 */
148const SQLT_FLT = UNKNOWN;
149/**
150 * @var int
151 * @cvalue SQLT_UIN
152 */
153const SQLT_UIN = UNKNOWN;
154/**
155 * @var int
156 * @cvalue SQLT_LNG
157 */
158const SQLT_LNG = UNKNOWN;
159/**
160 * @var int
161 * @cvalue SQLT_LBI
162 */
163const SQLT_LBI = UNKNOWN;
164/**
165 * @var int
166 * @cvalue SQLT_BIN
167 */
168const SQLT_BIN = UNKNOWN;
169/**
170 * @var int
171 * @cvalue SQLT_ODT
172 */
173const SQLT_ODT = UNKNOWN;
174/**
175 * @var int
176 * @cvalue SQLT_BDOUBLE
177 */
178const SQLT_BDOUBLE = UNKNOWN;
179/**
180 * @var int
181 * @cvalue SQLT_BFLOAT
182 */
183const SQLT_BFLOAT = UNKNOWN;
184#if OCI_MAJOR_VERSION >= 12
185/**
186 * @var int
187 * @cvalue SQLT_BOL
188 */
189const SQLT_BOL = UNKNOWN;
190#endif
191
192/**
193 * @var int
194 * @cvalue SQLT_NTY
195 */
196const OCI_B_NTY = UNKNOWN;
197/**
198 * @var int
199 * @cvalue SQLT_NTY
200 */
201const SQLT_NTY = UNKNOWN;
202
203/** @var string */
204const OCI_SYSDATE = "SYSDATE";
205
206/**
207 * @var int
208 * @cvalue SQLT_BFILEE
209 */
210const OCI_B_BFILE = UNKNOWN;
211/**
212 * @var int
213 * @cvalue SQLT_CFILEE
214 */
215const OCI_B_CFILEE = UNKNOWN;
216/**
217 * @var int
218 * @cvalue SQLT_CLOB
219 */
220const OCI_B_CLOB = UNKNOWN;
221/**
222 * @var int
223 * @cvalue SQLT_BLOB
224 */
225const OCI_B_BLOB = UNKNOWN;
226/**
227 * @var int
228 * @cvalue SQLT_RDD
229 */
230const OCI_B_ROWID = UNKNOWN;
231/**
232 * @var int
233 * @cvalue SQLT_RSET
234 */
235const OCI_B_CURSOR = UNKNOWN;
236/**
237 * @var int
238 * @cvalue SQLT_BIN
239 */
240const OCI_B_BIN = UNKNOWN;
241/**
242 * @var int
243 * @cvalue SQLT_INT
244 */
245const OCI_B_INT = UNKNOWN;
246/**
247 * @var int
248 * @cvalue SQLT_NUM
249 */
250const OCI_B_NUM = UNKNOWN;
251#if OCI_MAJOR_VERSION >= 12
252/**
253 * @var int
254 * @cvalue SQLT_BOL
255 */
256const OCI_B_BOL = UNKNOWN;
257#endif
258
259/* for OCIFetchStatement */
260
261/**
262 * @var int
263 * @cvalue PHP_OCI_FETCHSTATEMENT_BY_COLUMN
264 */
265const OCI_FETCHSTATEMENT_BY_COLUMN = UNKNOWN;
266/**
267 * @var int
268 * @cvalue PHP_OCI_FETCHSTATEMENT_BY_ROW
269 */
270const OCI_FETCHSTATEMENT_BY_ROW = UNKNOWN;
271
272/* for OCIFetchInto & OCIResult */
273
274/**
275 * @var int
276 * @cvalue PHP_OCI_ASSOC
277 */
278const OCI_ASSOC = UNKNOWN;
279/**
280 * @var int
281 * @cvalue PHP_OCI_NUM
282 */
283const OCI_NUM = UNKNOWN;
284/**
285 * @var int
286 * @cvalue PHP_OCI_BOTH
287 */
288const OCI_BOTH = UNKNOWN;
289/**
290 * @var int
291 * @cvalue PHP_OCI_RETURN_NULLS
292 */
293const OCI_RETURN_NULLS = UNKNOWN;
294/**
295 * @var int
296 * @cvalue PHP_OCI_RETURN_LOBS
297 */
298const OCI_RETURN_LOBS = UNKNOWN;
299
300/* for OCINewDescriptor (real "oci" names + short "php" names */
301
302/**
303 * @var int
304 * @cvalue OCI_DTYPE_FILE
305 */
306const OCI_DTYPE_FILE = UNKNOWN;
307/**
308 * @var int
309 * @cvalue OCI_DTYPE_LOB
310 */
311const OCI_DTYPE_LOB = UNKNOWN;
312/**
313 * @var int
314 * @cvalue OCI_DTYPE_ROWID
315 */
316const OCI_DTYPE_ROWID = UNKNOWN;
317
318/**
319 * @var int
320 * @cvalue OCI_DTYPE_FILE
321 */
322const OCI_D_FILE = UNKNOWN;
323/**
324 * @var int
325 * @cvalue OCI_DTYPE_LOB
326 */
327const OCI_D_LOB = UNKNOWN;
328/**
329 * @var int
330 * @cvalue OCI_DTYPE_ROWID
331 */
332const OCI_D_ROWID = UNKNOWN;
333
334/* for OCIWriteTemporaryLob */
335
336/**
337 * @var int
338 * @cvalue OCI_TEMP_CLOB
339 */
340const OCI_TEMP_CLOB = UNKNOWN;
341/**
342 * @var int
343 * @cvalue OCI_TEMP_BLOB
344 */
345const OCI_TEMP_BLOB = UNKNOWN;
346
347/* for Transparent Application Failover */
348
349/**
350 * @var int
351 * @cvalue OCI_FO_END
352 */
353const OCI_FO_END = UNKNOWN;
354/**
355 * @var int
356 * @cvalue OCI_FO_ABORT
357 */
358const OCI_FO_ABORT = UNKNOWN;
359/**
360 * @var int
361 * @cvalue OCI_FO_REAUTH
362 */
363const OCI_FO_REAUTH = UNKNOWN;
364/**
365 * @var int
366 * @cvalue OCI_FO_BEGIN
367 */
368const OCI_FO_BEGIN = UNKNOWN;
369/**
370 * @var int
371 * @cvalue OCI_FO_ERROR
372 */
373const OCI_FO_ERROR = UNKNOWN;
374
375/**
376 * @var int
377 * @cvalue OCI_FO_NONE
378 */
379const OCI_FO_NONE = UNKNOWN;
380/**
381 * @var int
382 * @cvalue OCI_FO_SESSION
383 */
384const OCI_FO_SESSION = UNKNOWN;
385/**
386 * @var int
387 * @cvalue OCI_FO_SELECT
388 */
389const OCI_FO_SELECT = UNKNOWN;
390/**
391 * @var int
392 * @cvalue OCI_FO_TXNAL
393 */
394const OCI_FO_TXNAL = UNKNOWN;
395
396/**
397 * @var int
398 * @cvalue OCI_FO_RETRY
399 */
400const OCI_FO_RETRY = UNKNOWN;
401
402/** @param resource $statement */
403function oci_define_by_name($statement, string $column, mixed &$var, int $type = 0): bool {}
404
405/**
406 * @param resource $statement
407 * @alias oci_define_by_name
408 * @deprecated
409 */
410function ocidefinebyname($statement, string $column, mixed &$var, int $type = 0): bool {}
411
412/** @param resource $statement */
413function oci_bind_by_name($statement, string $param, mixed &$var, int $max_length = -1, int $type = 0): bool {}
414
415/**
416 * @param resource $statement
417 * @alias oci_bind_by_name
418 * @deprecated
419 */
420function ocibindbyname($statement, string $param, mixed &$var, int $max_length = -1, int $type = 0): bool {}
421
422/**
423 * @param resource $statement
424 * @param array $var
425 */
426function oci_bind_array_by_name($statement, string $param, &$var, int $max_array_length, int $max_item_length = -1, int $type = SQLT_AFC): bool {}
427
428function oci_free_descriptor(OCILob $lob): bool {}
429
430/**
431 * @alias oci_free_descriptor
432 * @deprecated
433 */
434function ocifreedesc(OCILob $lob): bool {}
435
436function oci_lob_save(OCILob $lob, string $data, int $offset = 0): bool {}
437
438/**
439 * @alias oci_lob_save
440 * @deprecated
441 */
442function ocisavelob(OCILob $lob, string $data, int $offset = 0): bool {}
443
444function oci_lob_import(OCILob $lob, string $filename): bool {}
445
446/**
447 * @alias oci_lob_import
448 * @deprecated
449 */
450function ocisavelobfile(OCILob $lob, string $filename): bool {}
451
452function oci_lob_load(OCILob $lob): string|false {}
453
454/**
455 * @alias oci_lob_load
456 * @deprecated
457 */
458function ociloadlob(OCILob $lob): string|false {}
459
460function oci_lob_read(OCILob $lob, int $length): string|false {}
461
462function oci_lob_eof(OCILob $lob): bool {}
463
464function oci_lob_tell(OCILob $lob): int|false {}
465
466function oci_lob_rewind(OCILob $lob): bool {}
467
468function oci_lob_seek(OCILob $lob, int $offset, int $whence = OCI_SEEK_SET): bool {}
469
470function oci_lob_size(OCILob $lob): int|false {}
471
472function oci_lob_write(OCILob $lob, string $data, ?int $length = null): int|false {}
473
474function oci_lob_append(OCILob $to, OCILob $from): bool {}
475
476function oci_lob_truncate(OCILob $lob, int $length = 0): bool {}
477
478function oci_lob_erase(OCILob $lob, ?int $offset = null, ?int $length = null): int|false {}
479
480function oci_lob_flush(OCILob $lob, int $flag = 0): bool {}
481
482function ocisetbufferinglob(OCILob $lob, bool $mode): bool {}
483
484function ocigetbufferinglob(OCILob $lob): bool {}
485
486function oci_lob_copy(OCILob $to, OCILob $from, ?int $length = null): bool {}
487
488function oci_lob_is_equal(OCILob $lob1, OCILob $lob2): bool {}
489
490function oci_lob_export(OCILob $lob, string $filename, ?int $offset = null, ?int $length = null): bool {}
491
492/**
493 * @alias oci_lob_export
494 * @deprecated
495 */
496function ociwritelobtofile(OCILob $lob, string $filename, ?int $offset = null, ?int $length = null): bool {}
497
498/** @param resource $connection */
499function oci_new_descriptor($connection, int $type = OCI_DTYPE_LOB): ?OCILob {}
500
501/**
502 * @param resource $connection
503 * @alias oci_new_descriptor
504 * @deprecated
505 */
506function ocinewdescriptor($connection, int $type = OCI_DTYPE_LOB): ?OCILob {}
507
508/** @param resource $connection */
509function oci_rollback($connection): bool {}
510
511/**
512 * @param resource $connection
513 * @alias oci_rollback
514 * @deprecated
515 */
516function ocirollback($connection): bool {}
517
518/** @param resource $connection */
519function oci_commit($connection): bool {}
520
521/**
522 * @param resource $connection
523 * @alias oci_commit
524 * @deprecated
525 */
526function ocicommit($connection): bool {}
527
528/** @param resource $statement */
529function oci_field_name($statement, string|int $column): string|false {}
530
531/**
532 * @param resource $statement
533 * @alias oci_field_name
534 * @deprecated
535 */
536function ocicolumnname($statement, string|int $column): string|false {}
537
538/** @param resource $statement */
539function oci_field_size($statement, string|int $column): int|false {}
540
541/**
542 * @param resource $statement
543 * @alias oci_field_size
544 * @deprecated
545 */
546function ocicolumnsize($statement, string|int $column): int|false {}
547
548/** @param resource $statement */
549function oci_field_scale($statement, string|int $column): int|false {}
550
551/**
552 * @param resource $statement
553 * @alias oci_field_scale
554 * @deprecated
555 */
556function ocicolumnscale($statement, string|int $column): int|false {}
557
558/** @param resource $statement */
559function oci_field_precision($statement, string|int $column): int|false {}
560
561/**
562 * @param resource $statement
563 * @alias oci_field_precision
564 * @deprecated
565 */
566function ocicolumnprecision($statement, string|int $column): int|false {}
567
568/** @param resource $statement */
569function oci_field_type($statement, string|int $column): string|int|false {}
570
571/**
572 * @param resource $statement
573 * @alias oci_field_type
574 * @deprecated
575 */
576function ocicolumntype($statement, string|int $column): string|int|false {}
577
578/** @param resource $statement */
579function oci_field_type_raw($statement, string|int $column): int|false {}
580
581/**
582 * @param resource $statement
583 * @alias oci_field_type_raw
584 * @deprecated
585 */
586function ocicolumntyperaw($statement, string|int $column): int|false {}
587
588/** @param resource $statement */
589function oci_field_is_null($statement, string|int $column): bool {}
590
591/**
592 * @param resource $statement
593 * @alias oci_field_is_null
594 * @deprecated
595 */
596function ocicolumnisnull($statement, string|int $column): bool {}
597
598/** @param resource $statement */
599function oci_execute($statement, int $mode = OCI_COMMIT_ON_SUCCESS): bool {}
600
601/**
602 * @param resource $statement
603 * @alias oci_execute
604 * @deprecated
605 */
606function ociexecute($statement, int $mode = OCI_COMMIT_ON_SUCCESS): bool {}
607
608/** @param resource $statement */
609function oci_cancel($statement): bool {}
610
611/**
612 * @param resource $statement
613 * @alias oci_cancel
614 * @deprecated
615 */
616function ocicancel($statement): bool {}
617
618/** @param resource $statement */
619function oci_fetch($statement): bool {}
620
621/**
622 * @param resource $statement
623 * @alias oci_fetch
624 * @deprecated
625 */
626function ocifetch($statement): bool {}
627
628/**
629 * @param resource $statement
630 * @param array $result
631 * @deprecated
632 */
633function ocifetchinto($statement, &$result, int $mode = OCI_NUM): int|false {}
634
635/**
636 * @param resource $statement
637 * @param array $output
638 */
639function oci_fetch_all($statement, &$output, int $offset = 0, int $limit = -1, int $flags = OCI_FETCHSTATEMENT_BY_COLUMN | OCI_ASSOC): int {}
640
641/**
642 * @param resource $statement
643 * @param array $output
644 * @alias oci_fetch_all
645 * @deprecated
646 */
647function ocifetchstatement($statement, &$output, int $offset = 0, int $limit = -1, int $flags = OCI_FETCHSTATEMENT_BY_COLUMN | OCI_ASSOC): int {}
648
649/** @param resource $statement */
650function oci_fetch_object($statement, int $mode = OCI_ASSOC | OCI_RETURN_NULLS): stdClass|false {}
651
652/** @param resource $statement */
653function oci_fetch_row($statement): array|false {}
654
655/** @param resource $statement */
656function oci_fetch_assoc($statement): array|false {}
657
658/** @param resource $statement */
659function oci_fetch_array($statement, int $mode = OCI_BOTH | OCI_RETURN_NULLS): array|false {}
660
661/** @param resource $statement */
662function oci_free_statement($statement): bool {}
663
664/**
665 * @param resource $statement
666 * @alias oci_free_statement
667 * @deprecated
668 */
669function ocifreestatement($statement): bool {}
670
671/**
672 * @param resource $statement
673 * @alias oci_free_statement
674 */
675function oci_free_cursor($statement): bool {}
676
677/**
678 * @param resource $statement
679 * @alias oci_free_statement
680 * @deprecated
681 */
682function ocifreecursor($statement): bool {}
683
684/** @param resource $connection */
685function oci_close($connection): ?bool {}
686
687/**
688 * @param resource $connection
689 * @alias oci_close
690 * @deprecated
691 */
692function ocilogoff($connection): ?bool {}
693
694/**
695 * @return resource|false
696 */
697function oci_new_connect(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
698
699/**
700 * @return resource|false
701 * @alias oci_new_connect
702 * @deprecated
703 */
704function ocinlogon(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
705
706/**
707 * @return resource|false
708 */
709function oci_connect(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
710
711/**
712 * @return resource|false
713 * @alias oci_connect
714 * @deprecated
715 */
716function ocilogon(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
717
718/**
719 * @return resource|false
720 */
721function oci_pconnect(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
722
723/**
724 * @return resource|false
725 * @alias oci_pconnect
726 * @deprecated
727 */
728function ociplogon(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
729
730/**
731 * @param resource|null $connection_or_statement
732 * @return array<string, int|string>|false
733 * @refcount 1
734 */
735function oci_error($connection_or_statement = null): array|false {}
736
737/**
738 * @param resource|null $connection_or_statement
739 * @return array<string, int|string>|false
740 * @alias oci_error
741 * @deprecated
742 */
743function ocierror($connection_or_statement = null): array|false {}
744
745/** @param resource $statement */
746function oci_num_fields($statement): int {}
747
748/**
749 * @param resource $statement
750 * @alias oci_num_fields
751 * @deprecated
752 */
753function ocinumcols($statement): int {}
754
755/**
756 * @param resource $connection
757 * @return resource|false
758 */
759function oci_parse($connection, string $sql) {}
760
761/**
762 * @param resource $connection
763 * @return resource|false
764 * @alias oci_parse
765 * @deprecated
766 */
767function ociparse($connection, string $sql) {}
768
769/**
770 * @param resource $statement
771 * @return resource|false
772 */
773function oci_get_implicit_resultset($statement) {}
774
775/** @param resource $statement */
776function oci_set_prefetch($statement, int $rows): bool {}
777
778/**
779 * @param resource $statement
780 * @alias oci_set_prefetch
781 * @deprecated
782 */
783function ocisetprefetch($statement, int $rows): bool {}
784
785/** @param resource $statement */
786function oci_set_prefetch_lob($statement, int $prefetch_lob_size): bool {}
787
788/** @param resource $connection */
789function oci_set_client_identifier($connection, string $client_id): bool {}
790
791function oci_set_edition(string $edition): bool {}
792
793/** @param resource $connection */
794function oci_set_module_name($connection, string $name): bool {}
795
796/** @param resource $connection */
797function oci_set_action($connection, string $action): bool {}
798
799/**
800 * @param resource $connection
801 */
802function oci_set_client_info($connection, string $client_info): bool {}
803
804/** @param resource $connection */
805function oci_set_db_operation($connection, string $action): bool {}
806
807/** @param resource $connection */
808function oci_set_call_timeout($connection, int $timeout): bool {}
809
810/**
811 * @param resource|string $connection
812 * @return resource|bool
813 */
814function oci_password_change($connection, string $username, string $old_password, string $new_password) {}
815
816/**
817 * @param resource|string $connection
818 * @return resource|bool
819 * @alias oci_password_change
820 * @deprecated
821 */
822function ocipasswordchange($connection, string $username, string $old_password, string $new_password) {}
823
824/**
825 * @param resource $connection
826 * @return resource|false
827 */
828function oci_new_cursor($connection) {}
829
830/**
831 * @param resource $connection
832 * @return resource|false
833 * @alias oci_new_cursor
834 * @deprecated
835 */
836function ocinewcursor($connection) {}
837
838/** @param resource $statement */
839function oci_result($statement, string|int $column): mixed {}
840
841/**
842 * @param resource $statement
843 * @alias oci_result
844 * @deprecated
845 */
846function ociresult($statement, string|int $column): mixed {}
847
848function oci_client_version(): string {}
849
850/** @param resource $connection */
851function oci_server_version($connection): string|false {}
852
853/**
854 * @param resource $connection
855 * @alias oci_server_version
856 * @deprecated
857 */
858function ociserverversion($connection): string|false {}
859
860/** @param resource $statement */
861function oci_statement_type($statement): string|false {}
862
863/**
864 * @param resource $statement
865 * @alias oci_statement_type
866 * @deprecated
867 */
868function ocistatementtype($statement): string|false {}
869
870/** @param resource $statement */
871function oci_num_rows($statement): int|false {}
872
873/**
874 * @param resource $statement
875 * @alias oci_num_rows
876 * @deprecated
877 */
878function ocirowcount($statement): int|false {}
879
880function oci_free_collection(OCICollection $collection): bool {}
881
882/**
883 * @alias oci_free_collection
884 * @deprecated
885 */
886function ocifreecollection(OCICollection $collection): bool {}
887
888function oci_collection_append(OCICollection $collection, string $value): bool {}
889
890/**
891 * @alias oci_collection_append
892 * @deprecated
893 */
894function ocicollappend(OCICollection $collection, string $value): bool {}
895
896function oci_collection_element_get(OCICollection $collection, int $index): string|float|null|false {}
897
898/**
899 * @alias oci_collection_element_get
900 * @deprecated
901 */
902function ocicollgetelem(OCICollection $collection, int $index): string|float|null|false {}
903
904function oci_collection_assign(OCICollection $to, OCICollection $from): bool {}
905
906function oci_collection_element_assign(OCICollection $collection, int $index, string $value): bool {}
907
908/**
909 * @alias oci_collection_element_assign
910 * @deprecated
911 */
912function ocicollassignelem(OCICollection $collection, int $index, string $value): bool {}
913
914function oci_collection_size(OCICollection $collection): int|false {}
915
916/**
917 * @alias oci_collection_size
918 * @deprecated
919 */
920function ocicollsize(OCICollection $collection): int|false {}
921
922function oci_collection_max(OCICollection $collection): int|false {}
923
924/**
925 * @alias oci_collection_max
926 * @deprecated
927 */
928function ocicollmax(OCICollection $collection): int|false {}
929
930function oci_collection_trim(OCICollection $collection, int $num): bool {}
931
932/**
933 * @alias oci_collection_trim
934 * @deprecated
935 */
936function ocicolltrim(OCICollection $collection, int $num): bool {}
937
938/** @param resource $connection */
939function oci_new_collection($connection, string $type_name, ?string $schema = null): OCICollection|false {}
940
941/**
942 * @param resource $connection
943 * @alias oci_new_collection
944 * @deprecated
945 */
946function ocinewcollection($connection, string $type_name, ?string $schema = null): OCICollection|false {}
947
948/** @param resource $connection */
949function oci_register_taf_callback($connection, ?callable $callback): bool {}
950
951/** @param resource $connection */
952function oci_unregister_taf_callback($connection): bool {}
953
954#[\AllowDynamicProperties]
955class OCILob {
956    /**
957     * @alias oci_lob_save
958     * @tentative-return-type
959     */
960    public function save(string $data, int $offset = 0): bool {}
961
962    /**
963     * @alias oci_lob_import
964     * @tentative-return-type
965     */
966    public function import(string $filename): bool {}
967
968    /**
969     * @alias oci_lob_import
970     * @tentative-return-type
971     */
972    public function saveFile(string $filename): bool {}
973
974    /**
975     * @alias oci_lob_load
976     * @tentative-return-type
977     */
978    public function load(): string|false {}
979
980    /**
981     * @alias oci_lob_read
982     * @tentative-return-type
983     */
984    public function read(int $length): string|false {}
985
986    /**
987     * @alias oci_lob_eof
988     * @tentative-return-type
989     */
990    public function eof(): bool {}
991
992    /**
993     * @alias oci_lob_tell
994     * @tentative-return-type
995     */
996    public function tell(): int|false {}
997
998    /**
999     * @alias oci_lob_rewind
1000     * @tentative-return-type
1001     */
1002    public function rewind(): bool {}
1003
1004    /**
1005     * @alias oci_lob_seek
1006     * @tentative-return-type
1007     */
1008    public function seek(int $offset, int $whence = OCI_SEEK_SET): bool {}
1009
1010    /**
1011     * @alias oci_lob_size
1012     * @tentative-return-type
1013     */
1014    public function size(): int|false {}
1015
1016    /**
1017     * @alias oci_lob_write
1018     * @tentative-return-type
1019     */
1020    public function write(string $data, ?int $length = null): int|false {}
1021
1022    /**
1023     * @alias oci_lob_append
1024     * @tentative-return-type
1025     */
1026    public function append(OCILob $from): bool {}
1027
1028    /**
1029     * @alias oci_lob_truncate
1030     * @tentative-return-type
1031     */
1032    public function truncate(int $length = 0): bool {}
1033
1034    /**
1035     * @alias oci_lob_erase
1036     * @tentative-return-type
1037     */
1038    public function erase(?int $offset = null, ?int $length = null): int|false {}
1039
1040    /**
1041     * @alias oci_lob_flush
1042     * @tentative-return-type
1043     */
1044    public function flush(int $flag = 0): bool {}
1045
1046    /**
1047     * @alias ocisetbufferinglob
1048     * @tentative-return-type
1049     */
1050    public function setBuffering(bool $mode): bool {}
1051
1052    /**
1053     * @alias ocigetbufferinglob
1054     * @tentative-return-type
1055     */
1056    public function getBuffering(): bool {}
1057
1058    /**
1059     * @alias oci_lob_export
1060     * @tentative-return-type
1061     */
1062    public function writeToFile(string $filename, ?int $offset = null, ?int $length = null): bool {}
1063
1064    /**
1065     * @alias oci_lob_export
1066     * @tentative-return-type
1067     */
1068    public function export(string $filename, ?int $offset = null, ?int $length = null): bool {}
1069
1070    /** @tentative-return-type */
1071    public function writeTemporary(string $data, int $type = OCI_TEMP_CLOB): bool {}
1072
1073    /** @tentative-return-type */
1074    public function close(): bool {}
1075
1076    /**
1077     * @alias oci_free_descriptor
1078     * @tentative-return-type
1079     */
1080    public function free(): bool {}
1081}
1082
1083#[\AllowDynamicProperties]
1084class OCICollection {
1085    /**
1086     * @alias oci_free_collection
1087     * @tentative-return-type
1088     */
1089    public function free(): bool {}
1090
1091    /**
1092     * @alias oci_collection_append
1093     * @tentative-return-type
1094     */
1095    public function append(string $value): bool {}
1096
1097    /**
1098     * @alias oci_collection_element_get
1099     * @tentative-return-type
1100     */
1101    public function getElem(int $index): string|float|null|false {}
1102
1103    /**
1104     * @alias oci_collection_assign
1105     * @tentative-return-type
1106     */
1107    public function assign(OCICollection $from): bool {}
1108
1109    /**
1110     * @alias oci_collection_element_assign
1111     * @tentative-return-type
1112     */
1113    public function assignElem(int $index, string $value): bool {}
1114
1115    /**
1116     * @alias oci_collection_size
1117     * @tentative-return-type
1118     */
1119    public function size(): int|false {}
1120
1121    /**
1122     * @alias oci_collection_max
1123     * @tentative-return-type
1124     */
1125    public function max(): int|false {}
1126
1127    /**
1128     * @alias oci_collection_trim
1129     * @tentative-return-type
1130     */
1131    public function trim(int $num): bool {}
1132}
1133