php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
odbc.stub.php
Go to the documentation of this file.
1<?php
2
4
5namespace Odbc {
11 {
12 }
13
18 class Result
19 {
20 }
21}
22
23namespace {
28 const ODBC_TYPE = UNKNOWN;
33 const ODBC_BINMODE_PASSTHRU = UNKNOWN;
38 const ODBC_BINMODE_RETURN = UNKNOWN;
43 const ODBC_BINMODE_CONVERT = UNKNOWN;
44
45 /* Define Constants for options. These Constants are defined in <sqlext.h> */
46
51 const SQL_ODBC_CURSORS = UNKNOWN;
56 const SQL_CUR_USE_DRIVER = UNKNOWN;
61 const SQL_CUR_USE_IF_NEEDED = UNKNOWN;
66 const SQL_CUR_USE_ODBC = UNKNOWN;
67
72 const SQL_CONCURRENCY = UNKNOWN;
77 const SQL_CONCUR_READ_ONLY = UNKNOWN;
82 const SQL_CONCUR_LOCK = UNKNOWN;
87 const SQL_CONCUR_ROWVER = UNKNOWN;
92 const SQL_CONCUR_VALUES = UNKNOWN;
93
98 const SQL_CURSOR_TYPE = UNKNOWN;
103 const SQL_CURSOR_FORWARD_ONLY = UNKNOWN;
113 const SQL_CURSOR_DYNAMIC = UNKNOWN;
118 const SQL_CURSOR_STATIC = UNKNOWN;
119
124 const SQL_KEYSET_SIZE = UNKNOWN;
125
126 /* these are for the Data Source type */
127
132 const SQL_FETCH_FIRST = UNKNOWN;
137 const SQL_FETCH_NEXT = UNKNOWN;
138
139 /* register the standard data types */
140
145 const SQL_CHAR = UNKNOWN;
150 const SQL_VARCHAR = UNKNOWN;
155 const SQL_LONGVARCHAR = UNKNOWN;
160 const SQL_DECIMAL = UNKNOWN;
165 const SQL_NUMERIC = UNKNOWN;
170 const SQL_BIT = UNKNOWN;
175 const SQL_TINYINT = UNKNOWN;
180 const SQL_SMALLINT = UNKNOWN;
185 const SQL_INTEGER = UNKNOWN;
190 const SQL_BIGINT = UNKNOWN;
195 const SQL_REAL = UNKNOWN;
200 const SQL_FLOAT = UNKNOWN;
205 const SQL_DOUBLE = UNKNOWN;
210 const SQL_BINARY = UNKNOWN;
215 const SQL_VARBINARY = UNKNOWN;
220 const SQL_LONGVARBINARY = UNKNOWN;
225 const SQL_DATE = UNKNOWN;
230 const SQL_TIME = UNKNOWN;
235 const SQL_TIMESTAMP = UNKNOWN;
236
237#if (defined(ODBCVER) && (ODBCVER >= 0x0300))
242 const SQL_TYPE_DATE = UNKNOWN;
247 const SQL_TYPE_TIME = UNKNOWN;
252 const SQL_TYPE_TIMESTAMP = UNKNOWN;
257 const SQL_WCHAR = UNKNOWN;
262 const SQL_WVARCHAR = UNKNOWN;
267 const SQL_WLONGVARCHAR = UNKNOWN;
268
269 /* SQLSpecialColumns values */
270
275 const SQL_BEST_ROWID = UNKNOWN;
280 const SQL_ROWVER = UNKNOWN;
285 const SQL_SCOPE_CURROW = UNKNOWN;
290 const SQL_SCOPE_TRANSACTION = UNKNOWN;
295 const SQL_SCOPE_SESSION = UNKNOWN;
300 const SQL_NO_NULLS = UNKNOWN;
305 const SQL_NULLABLE = UNKNOWN;
306
307 /* SQLStatistics values */
308
313 const SQL_INDEX_UNIQUE = UNKNOWN;
318 const SQL_INDEX_ALL = UNKNOWN;
323 const SQL_ENSURE = UNKNOWN;
328 const SQL_QUICK = UNKNOWN;
329
330#endif
331
332 function odbc_close_all(): void {}
333
334 function odbc_binmode(Odbc\Result $statement, int $mode): true {}
335
336 function odbc_longreadlen(Odbc\Result $statement, int $length): true {}
337
338 function odbc_prepare(Odbc\Connection $odbc, string $query): Odbc\Result|false {}
339
340 function odbc_execute(Odbc\Result $statement, array $params = []): bool {}
341
342 function odbc_cursor(Odbc\Result $statement): string|false {}
343
344#ifdef HAVE_SQLDATASOURCES
345 function odbc_data_source(Odbc\Connection $odbc, int $fetch_type): array|null|false {}
346#endif
347
348 function odbc_exec(Odbc\Connection $odbc, string $query): Odbc\Result|false {}
349
351 function odbc_do(Odbc\Connection $odbc, string $query): Odbc\Result|false {}
352
353#ifdef PHP_ODBC_HAVE_FETCH_HASH
354 function odbc_fetch_object(Odbc\Result $statement, ?int $row = null): stdClass|false {}
355
356 function odbc_fetch_array(Odbc\Result $statement, ?int $row = null): array|false {}
357#endif
358
362 function odbc_fetch_into(Odbc\Result $statement, &$array, ?int $row = null): int|false {}
363
364 function odbc_fetch_row(Odbc\Result $statement, ?int $row = null): bool {}
365
366 function odbc_result(Odbc\Result $statement, string|int $field): string|bool|null {}
367
368 #[\Deprecated(since: '8.1')]
369 function odbc_result_all(Odbc\Result $statement, string $format = ""): int|false {}
370
371 function odbc_free_result(Odbc\Result $statement): true {}
372
373 function odbc_connect(string $dsn, ?string $user = null, #[\SensitiveParameter] ?string $password = null, int $cursor_option = SQL_CUR_USE_DRIVER): Odbc\Connection|false {}
374
375 function odbc_pconnect(string $dsn, ?string $user = null, #[\SensitiveParameter] ?string $password = null, int $cursor_option = SQL_CUR_USE_DRIVER): Odbc\Connection|false {}
376
377 function odbc_close(Odbc\Connection $odbc): void {}
378
379 function odbc_num_rows(Odbc\Result $statement): int {}
380
381#if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30)
382 function odbc_next_result(Odbc\Result $statement): bool {}
383#endif
384
385 function odbc_num_fields(Odbc\Result $statement): int {}
386
387 function odbc_field_name(Odbc\Result $statement, int $field): string|false {}
388
389 function odbc_field_type(Odbc\Result $statement, int $field): string|false {}
390
391 function odbc_field_len(Odbc\Result $statement, int $field): int|false {}
392
394 function odbc_field_precision(Odbc\Result $statement, int $field): int|false {}
395
396 function odbc_field_scale(Odbc\Result $statement, int $field): int|false {}
397
398 function odbc_field_num(Odbc\Result $statement, string $field): int|false {}
399
400 function odbc_autocommit(Odbc\Connection $odbc, ?bool $enable = null): int|bool {}
401
402 function odbc_commit(Odbc\Connection $odbc): bool {}
403
404 function odbc_rollback(Odbc\Connection $odbc): bool {}
405
406 function odbc_error(?Odbc\Connection $odbc = null): string {}
407
408 function odbc_errormsg(?Odbc\Connection $odbc = null): string {}
409
410 function odbc_setoption(Odbc\Connection|Odbc\Result $odbc, int $which, int $option, int $value): bool {}
411
412 function odbc_tables(Odbc\Connection $odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?string $types = null): Odbc\Result|false {}
413
414 function odbc_columns(Odbc\Connection $odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?string $column = null): Odbc\Result|false {}
415
416 function odbc_gettypeinfo(Odbc\Connection $odbc, int $data_type = 0): Odbc\Result|false {}
417
418 function odbc_primarykeys(Odbc\Connection $odbc, ?string $catalog, string $schema, string $table): Odbc\Result|false {}
419
420#if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) && !defined(HAVE_SOLID_35)
421 function odbc_procedurecolumns(Odbc\Connection $odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null, ?string $column = null): Odbc\Result|false {}
422
423 function odbc_procedures(Odbc\Connection $odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null): Odbc\Result|false {}
424
425 function odbc_foreignkeys(Odbc\Connection $odbc, ?string $pk_catalog, string $pk_schema, string $pk_table, string $fk_catalog, string $fk_schema, string $fk_table): Odbc\Result|false {}
426#endif
427
428 function odbc_specialcolumns(Odbc\Connection $odbc, int $type, ?string $catalog, string $schema, string $table, int $scope, int $nullable): Odbc\Result|false {}
429
430 function odbc_statistics(Odbc\Connection $odbc, ?string $catalog, string $schema, string $table, int $unique, int $accuracy): Odbc\Result|false {}
431
432#if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30) &&!defined(HAVE_SOLID_35)
433 function odbc_tableprivileges(Odbc\Connection $odbc, ?string $catalog, string $schema, string $table): Odbc\Result|false {}
434
435 function odbc_columnprivileges(Odbc\Connection $odbc, ?string $catalog, string $schema, string $table, string $column): Odbc\Result|false {}
436#endif
437
438 /* odbc_utils.c */
439
441
443
445}
foreach($dp as $el) foreach( $dp as $el) if( $pass2< 2) echo ""
const SQL_CURSOR_DYNAMIC
odbc_longreadlen(Odbc\Result $statement, int $length)
odbc_field_len(Odbc\Result $statement, int $field)
const SQL_TYPE_TIME
odbc_foreignkeys(Odbc\Connection $odbc, ?string $pk_catalog, string $pk_schema, string $pk_table, string $fk_catalog, string $fk_schema, string $fk_table)
odbc_field_precision(Odbc\Result $statement, int $field)
const SQL_QUICK
const SQL_NULLABLE
odbc_do(Odbc\Connection $odbc, string $query)
odbc_error(?Odbc\Connection $odbc=null)
const SQL_CURSOR_TYPE
Definition odbc.stub.php:98
odbc_specialcolumns(Odbc\Connection $odbc, int $type, ?string $catalog, string $schema, string $table, int $scope, int $nullable)
const SQL_WLONGVARCHAR
const SQL_WCHAR
const SQL_LONGVARCHAR
odbc_gettypeinfo(Odbc\Connection $odbc, int $data_type=0)
odbc_free_result(Odbc\Result $statement)
odbc_commit(Odbc\Connection $odbc)
const SQL_FETCH_FIRST
odbc_connection_string_is_quoted(string $str)
const SQL_TIMESTAMP
const ODBC_TYPE
Definition odbc.stub.php:28
odbc_connection_string_should_quote(string $str)
const SQL_ROWVER
const SQL_CURSOR_KEYSET_DRIVEN
const SQL_TINYINT
odbc_data_source(Odbc\Connection $odbc, int $fetch_type)
const SQL_CUR_USE_IF_NEEDED
Definition odbc.stub.php:61
odbc_rollback(Odbc\Connection $odbc)
const SQL_REAL
odbc_setoption(Odbc\Connection|Odbc\Result $odbc, int $which, int $option, int $value)
const SQL_ENSURE
const SQL_DECIMAL
odbc_field_scale(Odbc\Result $statement, int $field)
odbc_pconnect(string $dsn, ?string $user=null, #[\SensitiveParameter] ?string $password=null, int $cursor_option=SQL_CUR_USE_DRIVER)
const SQL_DATE
const SQL_BIT
const SQL_NO_NULLS
const SQL_INDEX_ALL
odbc_autocommit(Odbc\Connection $odbc, ?bool $enable=null)
odbc_field_type(Odbc\Result $statement, int $field)
odbc_tableprivileges(Odbc\Connection $odbc, ?string $catalog, string $schema, string $table)
odbc_connect(string $dsn, ?string $user=null, #[\SensitiveParameter] ?string $password=null, int $cursor_option=SQL_CUR_USE_DRIVER)
const SQL_VARBINARY
const SQL_WVARCHAR
const SQL_CONCUR_ROWVER
Definition odbc.stub.php:87
const SQL_CUR_USE_DRIVER
Definition odbc.stub.php:56
odbc_columnprivileges(Odbc\Connection $odbc, ?string $catalog, string $schema, string $table, string $column)
odbc_num_fields(Odbc\Result $statement)
odbc_fetch_object(Odbc\Result $statement, ?int $row=null)
odbc_close(Odbc\Connection $odbc)
odbc_procedures(Odbc\Connection $odbc, ?string $catalog=null, ?string $schema=null, ?string $procedure=null)
const SQL_CONCUR_LOCK
Definition odbc.stub.php:82
const SQL_DOUBLE
odbc_procedurecolumns(Odbc\Connection $odbc, ?string $catalog=null, ?string $schema=null, ?string $procedure=null, ?string $column=null)
const SQL_VARCHAR
const SQL_CONCUR_READ_ONLY
Definition odbc.stub.php:77
const SQL_INDEX_UNIQUE
odbc_close_all()
odbc_fetch_into(Odbc\Result $statement, &$array, ?int $row=null)
odbc_result(Odbc\Result $statement, string|int $field)
odbc_result_all(Odbc\Result $statement, string $format="")
odbc_num_rows(Odbc\Result $statement)
odbc_statistics(Odbc\Connection $odbc, ?string $catalog, string $schema, string $table, int $unique, int $accuracy)
odbc_fetch_array(Odbc\Result $statement, ?int $row=null)
const SQL_INTEGER
const SQL_FLOAT
odbc_connection_string_quote(string $str)
const SQL_SCOPE_CURROW
odbc_columns(Odbc\Connection $odbc, ?string $catalog=null, ?string $schema=null, ?string $table=null, ?string $column=null)
const SQL_CURSOR_STATIC
const SQL_BEST_ROWID
const SQL_BIGINT
odbc_field_name(Odbc\Result $statement, int $field)
const ODBC_BINMODE_PASSTHRU
Definition odbc.stub.php:33
const SQL_BINARY
odbc_tables(Odbc\Connection $odbc, ?string $catalog=null, ?string $schema=null, ?string $table=null, ?string $types=null)
odbc_execute(Odbc\Result $statement, array $params=[])
const SQL_CURSOR_FORWARD_ONLY
odbc_cursor(Odbc\Result $statement)
const SQL_CONCUR_VALUES
Definition odbc.stub.php:92
odbc_binmode(Odbc\Result $statement, int $mode)
const SQL_TIME
const SQL_CONCURRENCY
Definition odbc.stub.php:72
const ODBC_BINMODE_CONVERT
Definition odbc.stub.php:43
const SQL_NUMERIC
odbc_prepare(Odbc\Connection $odbc, string $query)
odbc_exec(Odbc\Connection $odbc, string $query)
const SQL_CHAR
const SQL_SCOPE_SESSION
const SQL_SCOPE_TRANSACTION
const SQL_FETCH_NEXT
odbc_primarykeys(Odbc\Connection $odbc, ?string $catalog, string $schema, string $table)
const SQL_CUR_USE_ODBC
Definition odbc.stub.php:66
const SQL_LONGVARBINARY
const SQL_TYPE_DATE
const SQL_ODBC_CURSORS
Definition odbc.stub.php:51
odbc_fetch_row(Odbc\Result $statement, ?int $row=null)
odbc_field_num(Odbc\Result $statement, string $field)
const ODBC_BINMODE_RETURN
Definition odbc.stub.php:38
odbc_errormsg(?Odbc\Connection $odbc=null)
const SQL_SMALLINT
const SQL_TYPE_TIMESTAMP
const SQL_KEYSET_SIZE
odbc_next_result(Odbc\Result $statement)
$array
Definition test.php:58
defined(string $constant_name)
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
function(EX_VAR(opline->result.var))
$params