PDO_ODBC Configuration Options
PDO_ODBC Configuration OptionsNameDefaultChangeableChangelogpdo_odbc.connection_pooling"strict"INI_ALLpdo_odbc.db2_instance_nameNULLINI_SYSTEMFuture Constants
Runtime Runtime
| Name | Default | Changeable | Changelog |
|---|---|---|---|
| pdo_odbc.connection_pooling | "strict" | INI_ALL | |
| pdo_odbc.db2_instance_name | NULL | INI_SYSTEM | Future |
Constants
Title
pdo_odbc.connection_poolingstringWhether 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.strictis the recommend default, and will result in the use of cached connections only when all the connection parameters match exactly.relaxedwill 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.
Warningrelaxedmatching should not be used on a shared server, for security reasons.TipLeave this setting at the default
strictsetting unless you have good reason to change it.pdo_odbc.db2_instance_namestringIf you compile PDO_ODBC using the
db2flavour, 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.