oci8.stub.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <?php
  2. /** @generate-class-entries */
  3. /** @param resource $statement */
  4. function oci_define_by_name($statement, string $column, mixed &$var, int $type = 0): bool {}
  5. /**
  6. * @param resource $statement
  7. * @alias oci_define_by_name
  8. * @deprecated
  9. */
  10. function ocidefinebyname($statement, string $column, mixed &$var, int $type = 0): bool {}
  11. /** @param resource $statement */
  12. function oci_bind_by_name($statement, string $param, mixed &$var, int $max_length = -1, int $type = 0): bool {}
  13. /**
  14. * @param resource $statement
  15. * @alias oci_bind_by_name
  16. * @deprecated
  17. */
  18. function ocibindbyname($statement, string $param, mixed &$var, int $max_length = -1, int $type = 0): bool {}
  19. /**
  20. * @param resource $statement
  21. * @param array $var
  22. */
  23. function oci_bind_array_by_name($statement, string $param, &$var, int $max_array_length, int $max_item_length = -1, int $type = SQLT_AFC): bool {}
  24. function oci_free_descriptor(OCILob $lob): bool {}
  25. /**
  26. * @alias oci_free_descriptor
  27. * @deprecated
  28. */
  29. function ocifreedesc(OCILob $lob): bool {}
  30. function oci_lob_save(OCILob $lob, string $data, int $offset = 0): bool {}
  31. /**
  32. * @alias oci_lob_save
  33. * @deprecated
  34. */
  35. function ocisavelob(OCILob $lob, string $data, int $offset = 0): bool {}
  36. function oci_lob_import(OCILob $lob, string $filename): bool {}
  37. /**
  38. * @alias oci_lob_import
  39. * @deprecated
  40. */
  41. function ocisavelobfile(OCILob $lob, string $filename): bool {}
  42. function oci_lob_load(OCILob $lob): string|false {}
  43. /**
  44. * @alias oci_lob_load
  45. * @deprecated
  46. */
  47. function ociloadlob(OCILob $lob): string|false {}
  48. function oci_lob_read(OCILob $lob, int $length): string|false {}
  49. function oci_lob_eof(OCILob $lob): bool {}
  50. function oci_lob_tell(OCILob $lob): int|false {}
  51. function oci_lob_rewind(OCILob $lob): bool {}
  52. function oci_lob_seek(OCILob $lob, int $offset, int $whence = OCI_SEEK_SET): bool {}
  53. function oci_lob_size(OCILob $lob): int|false {}
  54. function oci_lob_write(OCILob $lob, string $data, ?int $length = null): int|false {}
  55. function oci_lob_append(OCILob $to, OCILob $from): bool {}
  56. function oci_lob_truncate(OCILob $lob, int $length = 0): bool {}
  57. function oci_lob_erase(OCILob $lob, ?int $offset = null, ?int $length = null): int|false {}
  58. function oci_lob_flush(OCILob $lob, int $flag = 0): bool {}
  59. function ocisetbufferinglob(OCILob $lob, bool $mode): bool {}
  60. function ocigetbufferinglob(OCILob $lob): bool {}
  61. function oci_lob_copy(OCILob $to, OCILob $from, ?int $length = null): bool {}
  62. function oci_lob_is_equal(OCILob $lob1, OCILob $lob2): bool {}
  63. function oci_lob_export(OCILob $lob, string $filename, ?int $offset = null, ?int $length = null): bool {}
  64. /**
  65. * @alias oci_lob_export
  66. * @deprecated
  67. */
  68. function ociwritelobtofile(OCILob $lob, string $filename, ?int $offset = null, ?int $length = null): bool {}
  69. /** @param resource $connection */
  70. function oci_new_descriptor($connection, int $type = OCI_DTYPE_LOB): ?OCILob {}
  71. /**
  72. * @param resource $connection
  73. * @alias oci_new_descriptor
  74. * @deprecated
  75. */
  76. function ocinewdescriptor($connection, int $type = OCI_DTYPE_LOB): ?OCILob {}
  77. /** @param resource $connection */
  78. function oci_rollback($connection): bool {}
  79. /**
  80. * @param resource $connection
  81. * @alias oci_rollback
  82. * @deprecated
  83. */
  84. function ocirollback($connection): bool {}
  85. /** @param resource $connection */
  86. function oci_commit($connection): bool {}
  87. /**
  88. * @param resource $connection
  89. * @alias oci_commit
  90. * @deprecated
  91. */
  92. function ocicommit($connection): bool {}
  93. /** @param resource $statement */
  94. function oci_field_name($statement, string|int $column): string|false {}
  95. /**
  96. * @param resource $statement
  97. * @alias oci_field_name
  98. * @deprecated
  99. */
  100. function ocicolumnname($statement, string|int $column): string|false {}
  101. /** @param resource $statement */
  102. function oci_field_size($statement, string|int $column): int|false {}
  103. /**
  104. * @param resource $statement
  105. * @alias oci_field_size
  106. * @deprecated
  107. */
  108. function ocicolumnsize($statement, string|int $column): int|false {}
  109. /** @param resource $statement */
  110. function oci_field_scale($statement, string|int $column): int|false {}
  111. /**
  112. * @param resource $statement
  113. * @alias oci_field_scale
  114. * @deprecated
  115. */
  116. function ocicolumnscale($statement, string|int $column): int|false {}
  117. /** @param resource $statement */
  118. function oci_field_precision($statement, string|int $column): int|false {}
  119. /**
  120. * @param resource $statement
  121. * @alias oci_field_precision
  122. * @deprecated
  123. */
  124. function ocicolumnprecision($statement, string|int $column): int|false {}
  125. /** @param resource $statement */
  126. function oci_field_type($statement, string|int $column): string|int|false {}
  127. /**
  128. * @param resource $statement
  129. * @alias oci_field_type
  130. * @deprecated
  131. */
  132. function ocicolumntype($statement, string|int $column): string|int|false {}
  133. /** @param resource $statement */
  134. function oci_field_type_raw($statement, string|int $column): int|false {}
  135. /**
  136. * @param resource $statement
  137. * @alias oci_field_type_raw
  138. * @deprecated
  139. */
  140. function ocicolumntyperaw($statement, string|int $column): int|false {}
  141. /** @param resource $statement */
  142. function oci_field_is_null($statement, string|int $column): bool {}
  143. /**
  144. * @param resource $statement
  145. * @alias oci_field_is_null
  146. * @deprecated
  147. */
  148. function ocicolumnisnull($statement, string|int $column): bool {}
  149. /** @param resource $statement */
  150. function oci_execute($statement, int $mode = OCI_COMMIT_ON_SUCCESS): bool {}
  151. /**
  152. * @param resource $statement
  153. * @alias oci_execute
  154. * @deprecated
  155. */
  156. function ociexecute($statement, int $mode = OCI_COMMIT_ON_SUCCESS): bool {}
  157. /** @param resource $statement */
  158. function oci_cancel($statement): bool {}
  159. /**
  160. * @param resource $statement
  161. * @alias oci_cancel
  162. * @deprecated
  163. */
  164. function ocicancel($statement): bool {}
  165. /** @param resource $statement */
  166. function oci_fetch($statement): bool {}
  167. /**
  168. * @param resource $statement
  169. * @alias oci_fetch
  170. * @deprecated
  171. */
  172. function ocifetch($statement): bool {}
  173. /**
  174. * @param resource $statement
  175. * @param array $result
  176. * @deprecated
  177. */
  178. function ocifetchinto($statement, &$result, int $mode = OCI_NUM): int|false {}
  179. /**
  180. * @param resource $statement
  181. * @param array $output
  182. */
  183. function oci_fetch_all($statement, &$output, int $offset = 0, int $limit = -1, int $flags = OCI_FETCHSTATEMENT_BY_COLUMN | OCI_ASSOC): int {}
  184. /**
  185. * @param resource $statement
  186. * @param array $output
  187. * @alias oci_fetch_all
  188. * @deprecated
  189. */
  190. function ocifetchstatement($statement, &$output, int $offset = 0, int $limit = -1, int $flags = OCI_FETCHSTATEMENT_BY_COLUMN | OCI_ASSOC): int {}
  191. /** @param resource $statement */
  192. function oci_fetch_object($statement, int $mode = OCI_ASSOC | OCI_RETURN_NULLS): stdClass|false {}
  193. /** @param resource $statement */
  194. function oci_fetch_row($statement): array|false {}
  195. /** @param resource $statement */
  196. function oci_fetch_assoc($statement): array|false {}
  197. /** @param resource $statement */
  198. function oci_fetch_array($statement, int $mode = OCI_BOTH | OCI_RETURN_NULLS): array|false {}
  199. /** @param resource $statement */
  200. function oci_free_statement($statement): bool {}
  201. /**
  202. * @param resource $statement
  203. * @alias oci_free_statement
  204. * @deprecated
  205. */
  206. function ocifreestatement($statement): bool {}
  207. /**
  208. * @param resource $statement
  209. * @alias oci_free_statement
  210. */
  211. function oci_free_cursor($statement): bool {}
  212. /**
  213. * @param resource $statement
  214. * @alias oci_free_statement
  215. * @deprecated
  216. */
  217. function ocifreecursor($statement): bool {}
  218. /** @param resource $connection */
  219. function oci_close($connection): ?bool {}
  220. /**
  221. * @param resource $connection
  222. * @alias oci_close
  223. * @deprecated
  224. */
  225. function ocilogoff($connection): ?bool {}
  226. /** @return resource|false */
  227. function oci_new_connect(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
  228. /**
  229. * @return resource|false
  230. * @alias oci_new_connect
  231. * @deprecated
  232. */
  233. function ocinlogon(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
  234. /**
  235. * @return resource|false
  236. */
  237. function oci_connect(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
  238. /**
  239. * @return resource|false
  240. * @alias oci_connect
  241. * @deprecated
  242. */
  243. function ocilogon(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
  244. /** @return resource|false */
  245. function oci_pconnect(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
  246. /**
  247. * @return resource|false
  248. * @alias oci_pconnect
  249. * @deprecated
  250. */
  251. function ociplogon(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
  252. /**
  253. * @param resource|null $connection_or_statement
  254. * @return array<string, int|string>|false
  255. * @refcount 1
  256. */
  257. function oci_error($connection_or_statement = null): array|false {}
  258. /**
  259. * @param resource|null $connection_or_statement
  260. * @return array<string, int|string>|false
  261. * @alias oci_error
  262. * @deprecated
  263. */
  264. function ocierror($connection_or_statement = null): array|false {}
  265. /** @param resource $statement */
  266. function oci_num_fields($statement): int {}
  267. /**
  268. * @param resource $statement
  269. * @alias oci_num_fields
  270. * @deprecated
  271. */
  272. function ocinumcols($statement): int {}
  273. /**
  274. * @param resource $connection
  275. * @return resource|false
  276. */
  277. function oci_parse($connection, string $sql) {}
  278. /**
  279. * @param resource $connection
  280. * @return resource|false
  281. * @alias oci_parse
  282. * @deprecated
  283. */
  284. function ociparse($connection, string $sql) {}
  285. /**
  286. * @param resource $statement
  287. * @return resource|false
  288. */
  289. function oci_get_implicit_resultset($statement) {}
  290. /** @param resource $statement */
  291. function oci_set_prefetch($statement, int $rows): bool {}
  292. /**
  293. * @param resource $statement
  294. * @alias oci_set_prefetch
  295. * @deprecated
  296. */
  297. function ocisetprefetch($statement, int $rows): bool {}
  298. /** @param resource $connection */
  299. function oci_set_client_identifier($connection, string $client_id): bool {}
  300. function oci_set_edition(string $edition): bool {}
  301. /** @param resource $connection */
  302. function oci_set_module_name($connection, string $name): bool {}
  303. /** @param resource $connection */
  304. function oci_set_action($connection, string $action): bool {}
  305. /**
  306. * @param resource $connection
  307. */
  308. function oci_set_client_info($connection, string $client_info): bool {}
  309. /** @param resource $connection */
  310. function oci_set_db_operation($connection, string $action): bool {}
  311. /** @param resource $connection */
  312. function oci_set_call_timeout($connection, int $timeout): bool {}
  313. /**
  314. * @param resource|string $connection
  315. * @return resource|bool
  316. */
  317. function oci_password_change($connection, string $username, string $old_password, string $new_password) {}
  318. /**
  319. * @param resource|string $connection
  320. * @return resource|bool
  321. * @alias oci_password_change
  322. * @deprecated
  323. */
  324. function ocipasswordchange($connection, string $username, string $old_password, string $new_password) {}
  325. /**
  326. * @param resource $connection
  327. * @return resource|false
  328. */
  329. function oci_new_cursor($connection) {}
  330. /**
  331. * @param resource $connection
  332. * @return resource|false
  333. * @alias oci_new_cursor
  334. * @deprecated
  335. */
  336. function ocinewcursor($connection) {}
  337. /** @param resource $statement */
  338. function oci_result($statement, string|int $column): mixed {}
  339. /**
  340. * @param resource $statement
  341. * @alias oci_result
  342. * @deprecated
  343. */
  344. function ociresult($statement, string|int $column): mixed {}
  345. function oci_client_version(): string {}
  346. /** @param resource $connection */
  347. function oci_server_version($connection): string|false {}
  348. /**
  349. * @param resource $connection
  350. * @alias oci_server_version
  351. * @deprecated
  352. */
  353. function ociserverversion($connection): string|false {}
  354. /** @param resource $statement */
  355. function oci_statement_type($statement): string|false {}
  356. /**
  357. * @param resource $statement
  358. * @alias oci_statement_type
  359. * @deprecated
  360. */
  361. function ocistatementtype($statement): string|false {}
  362. /** @param resource $statement */
  363. function oci_num_rows($statement): int|false {}
  364. /**
  365. * @param resource $statement
  366. * @alias oci_num_rows
  367. * @deprecated
  368. */
  369. function ocirowcount($statement): int|false {}
  370. function oci_free_collection(OCICollection $collection): bool {}
  371. /**
  372. * @alias oci_free_collection
  373. * @deprecated
  374. */
  375. function ocifreecollection(OCICollection $collection): bool {}
  376. function oci_collection_append(OCICollection $collection, string $value): bool {}
  377. /**
  378. * @alias oci_collection_append
  379. * @deprecated
  380. */
  381. function ocicollappend(OCICollection $collection, string $value): bool {}
  382. function oci_collection_element_get(OCICollection $collection, int $index): string|float|null|false {}
  383. /**
  384. * @alias oci_collection_element_get
  385. * @deprecated
  386. */
  387. function ocicollgetelem(OCICollection $collection, int $index): string|float|null|false {}
  388. function oci_collection_assign(OCICollection $to, OCICollection $from): bool {}
  389. function oci_collection_element_assign(OCICollection $collection, int $index, string $value): bool {}
  390. /**
  391. * @alias oci_collection_element_assign
  392. * @deprecated
  393. */
  394. function ocicollassignelem(OCICollection $collection, int $index, string $value): bool {}
  395. function oci_collection_size(OCICollection $collection): int|false {}
  396. /**
  397. * @alias oci_collection_size
  398. * @deprecated
  399. */
  400. function ocicollsize(OCICollection $collection): int|false {}
  401. function oci_collection_max(OCICollection $collection): int|false {}
  402. /**
  403. * @alias oci_collection_max
  404. * @deprecated
  405. */
  406. function ocicollmax(OCICollection $collection): int|false {}
  407. function oci_collection_trim(OCICollection $collection, int $num): bool {}
  408. /**
  409. * @alias oci_collection_trim
  410. * @deprecated
  411. */
  412. function ocicolltrim(OCICollection $collection, int $num): bool {}
  413. /** @param resource $connection */
  414. function oci_new_collection($connection, string $type_name, ?string $schema = null): OCICollection|false {}
  415. /**
  416. * @param resource $connection
  417. * @alias oci_new_collection
  418. * @deprecated
  419. */
  420. function ocinewcollection($connection, string $type_name, ?string $schema = null): OCICollection|false {}
  421. /** @param resource $connection */
  422. function oci_register_taf_callback($connection, ?callable $callback): bool {}
  423. /** @param resource $connection */
  424. function oci_unregister_taf_callback($connection): bool {}
  425. class OCILob {
  426. /**
  427. * @alias oci_lob_save
  428. * @tentative-return-type
  429. */
  430. public function save(string $data, int $offset = 0): bool {}
  431. /**
  432. * @alias oci_lob_import
  433. * @tentative-return-type
  434. */
  435. public function import(string $filename): bool {}
  436. /**
  437. * @alias oci_lob_import
  438. * @tentative-return-type
  439. */
  440. public function saveFile(string $filename): bool {}
  441. /**
  442. * @alias oci_lob_load
  443. * @tentative-return-type
  444. */
  445. public function load(): string|false {}
  446. /**
  447. * @alias oci_lob_read
  448. * @tentative-return-type
  449. */
  450. public function read(int $length): string|false {}
  451. /**
  452. * @alias oci_lob_eof
  453. * @tentative-return-type
  454. */
  455. public function eof(): bool {}
  456. /**
  457. * @alias oci_lob_tell
  458. * @tentative-return-type
  459. */
  460. public function tell(): int|false {}
  461. /**
  462. * @alias oci_lob_rewind
  463. * @tentative-return-type
  464. */
  465. public function rewind(): bool {}
  466. /**
  467. * @alias oci_lob_seek
  468. * @tentative-return-type
  469. */
  470. public function seek(int $offset, int $whence = OCI_SEEK_SET): bool {}
  471. /**
  472. * @alias oci_lob_size
  473. * @tentative-return-type
  474. */
  475. public function size(): int|false {}
  476. /**
  477. * @alias oci_lob_write
  478. * @tentative-return-type
  479. */
  480. public function write(string $data, ?int $length = null): int|false {}
  481. /**
  482. * @alias oci_lob_append
  483. * @tentative-return-type
  484. */
  485. public function append(OCILob $from): bool {}
  486. /**
  487. * @alias oci_lob_truncate
  488. * @tentative-return-type
  489. */
  490. public function truncate(int $length = 0): bool {}
  491. /**
  492. * @alias oci_lob_erase
  493. * @tentative-return-type
  494. */
  495. public function erase(?int $offset = null, ?int $length = null): int|false {}
  496. /**
  497. * @alias oci_lob_flush
  498. * @tentative-return-type
  499. */
  500. public function flush(int $flag = 0): bool {}
  501. /**
  502. * @alias ocisetbufferinglob
  503. * @tentative-return-type
  504. */
  505. public function setBuffering(bool $mode): bool {}
  506. /**
  507. * @alias ocigetbufferinglob
  508. * @tentative-return-type
  509. */
  510. public function getBuffering(): bool {}
  511. /**
  512. * @alias oci_lob_export
  513. * @tentative-return-type
  514. */
  515. public function writeToFile(string $filename, ?int $offset = null, ?int $length = null): bool {}
  516. /**
  517. * @alias oci_lob_export
  518. * @tentative-return-type
  519. */
  520. public function export(string $filename, ?int $offset = null, ?int $length = null): bool {}
  521. /** @tentative-return-type */
  522. public function writeTemporary(string $data, int $type = OCI_TEMP_CLOB): bool {}
  523. /** @tentative-return-type */
  524. public function close(): bool {}
  525. /**
  526. * @alias oci_free_descriptor
  527. * @tentative-return-type
  528. */
  529. public function free(): bool {}
  530. }
  531. class OCICollection {
  532. /**
  533. * @alias oci_free_collection
  534. * @tentative-return-type
  535. */
  536. public function free(): bool {}
  537. /**
  538. * @alias oci_collection_append
  539. * @tentative-return-type
  540. */
  541. public function append(string $value): bool {}
  542. /**
  543. * @alias oci_collection_element_get
  544. * @tentative-return-type
  545. */
  546. public function getElem(int $index): string|float|null|false {}
  547. /**
  548. * @alias oci_collection_assign
  549. * @tentative-return-type
  550. */
  551. public function assign(OCICollection $from): bool {}
  552. /**
  553. * @alias oci_collection_element_assign
  554. * @tentative-return-type
  555. */
  556. public function assignElem(int $index, string $value): bool {}
  557. /**
  558. * @alias oci_collection_size
  559. * @tentative-return-type
  560. */
  561. public function size(): int|false {}
  562. /**
  563. * @alias oci_collection_max
  564. * @tentative-return-type
  565. */
  566. public function max(): int|false {}
  567. /**
  568. * @alias oci_collection_trim
  569. * @tentative-return-type
  570. */
  571. public function trim(int $num): bool {}
  572. }