From: csa at dside dot dyndns dot org Operating system: Linux PHP version: 5.2.6 PHP Bug Type: PDO related Bug description: PDO/ODBC driver doesn't respect PDO::ATTR_TIMEOUT option
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 bug report at http://bugs.php.net/?id=45287&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45287&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45287&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45287&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45287&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45287&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45287&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45287&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45287&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45287&r=support Expected behavior: http://bugs.php.net/fix.php?id=45287&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45287&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45287&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45287&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45287&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45287&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45287&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45287&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45287&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45287&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45287&r=mysqlcfg
