odbc_gettypeinfo

FunctionParams and return types changed in PHP 8.4

Retrieves information about data types supported by the data source.

PHP 5
PHP 7
PHP 8.0
Improved
PHP 8.1
PHP 8.2-8.3
PHP 8.4
Improved
PHP 8.5
PHP 8.6

odbc_gettypeinfo Function synopsis

odbc_gettypeinfo(Odbc\Connection $odbc, int $data_type = 0): Odbc\Result|false

Parameters

$odbc

TypeOdbc\Connection

$data_type

OptionalTypeintDefault value0

The data type, which can be used to restrict the information to a single data type.

Return value

TypeOdbc\Result|false

Returns an ODBC result object or false on failure

The result set has the following columns:

The result set is ordered by DATA_TYPE and TYPE_NAME.

Changes to the odbc_gettypeinfo Function

PHP 8.4

  • Return type added: Odbc\Result|false
  • Parameter type added for parameter #1 ($odbc): Odbc\Connection
- odbc_gettypeinfo($odbc, int $data_type = 0)
+ odbc_gettypeinfo(Odbc\Connection $odbc, int $data_type = 0): Odbc\Result|false

PHP 8.0

  • Parameter name of parameter #1 changed: $connection_id to $odbc
  • Parameter type added for parameter #2 ($data_type): int
  • Parameter default value added for position #2 ($data_type): 0
- odbc_gettypeinfo($connection_id, $data_type)
+ odbc_gettypeinfo($odbc, int $data_type = 0)

odbc_gettypeinfo Function Availability

PHP VersionAvailability
PHP 8.6Upcoming Release Yes
PHP 8.5Supported (Latest) Yes
PHP 8.4Supported Yes
PHP 8.3Security-Fixes Only Yes
PHP 8.2Security-Fixes Only Yes
PHP 8.1Unsupported Yes
PHP 8.0Unsupported Yes
PHP 7.4Unsupported Yes
PHP 7.3Unsupported Yes
PHP 7.2Unsupported Yes
PHP 7.1Unsupported Yes
PHP 7.0Unsupported Yes
PHP 5.6Unsupported Yes
PHP 5.5Unsupported Yes
PHP 5.4Unsupported Yes
PHP 5.3Unsupported Yes