ID: 45287 Updated by: [email protected] Reported By: csa at dside dot dyndns dot org -Status: Open +Status: Feedback Bug Type: PDO related Operating System: Linux PHP Version: 5.2.6 New Comment:
Is this patch still necessary in any branches? (Update version properly if it is, otherwise close this :) Previous Comments: ------------------------------------------------------------------------ [2008-06-16 21:53:46] csa at dside dot dyndns dot org Description: ------------ PDO/ODBC code is not implementing timeouts support. This limits PHP applications abilities in the fast detection of inaccessible database backends. This patch provides missing functionality: http://dside.dyndns.org/projects/patches.dir/php-ds-odbc_timeout.patch Reproduce code: --------------- $dbh = new PDO("odbc:some_unreachable_server_dsn", NULL, NULL, array( PDO::ATTR_TIMEOUT => 1 )); Expected result: ---------------- Should timeout and throw exception in 1 second (if supported by underlying ODBC driver). Actual result: -------------- The specified timeout is not passed to the ODBC driver and driver's default is used. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45287&edit=1
