php8.5
Home/ Manual/ reference / pdo_odbc/ PDO_ODBC Configuration Options

PDO_ODBC Configuration Options

PDO_ODBC Configuration OptionsNameDefaultChangeableChangelogpdo_odbc.connection_pooling"strict"INI_ALLpdo_odbc.db2_instance_nameNULLINI_SYSTEMFuture Constants

Runtime Runtime

NameDefaultChangeableChangelog
pdo_odbc.connection_pooling"strict"INI_ALL
pdo_odbc.db2_instance_nameNULLINI_SYSTEMFuture

Constants

Title

pdo_odbc.connection_poolingstring

Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off" (equals to ""). The parameter describes how strict the connection manager should be when matching connection parameters to existing pooled connections. strict is the recommend default, and will result in the use of cached connections only when all the connection parameters match exactly. relaxed will result in the use of cached connections when similar connection parameters are used. This can result in increased use of the cache, at the risk of bleeding connection information between (for example) virtual hosts.

This setting can only be changed from the Ini file, and affects the entire process; any other modules loaded into the process that use the same ODBC libraries will be affected too, including the Unified ODBC extension.

Warning

relaxed matching should not be used on a shared server, for security reasons.

Tip

Leave this setting at the default strict setting unless you have good reason to change it.

pdo_odbc.db2_instance_namestring

If you compile PDO_ODBC using the db2 flavour, this setting sets the value of the DB2INSTANCE environment variable on Linux and UNIX operating systems to the specified name of the DB2 instance. This enables PDO_ODBC to resolve the location of the DB2 libraries and make cataloged connections to DB2 databases.

This setting can only be changed from the Ini file, and affects the entire process; any other modules loaded into the process that use the same ODBC libraries will be affected too, including the Unified ODBC extension.

This setting has no effect on Windows.

Source: reference/pdo_odbc/ini.xml · from the official PHP manual (php/doc-en)