Bug #45287 [Com]: [PATCH] PDO/ODBC driver doesn't respect PDO::ATTR_TIMEOUT option

From: Date: Wed, 02 Nov 2016 08:53:28 +0000
Subject: Bug #45287 [Com]: [PATCH] PDO/ODBC driver doesn't respect PDO::ATTR_TIMEOUT option
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205140@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=45287&edit=1 ID: 45287 Comment by: andrejs at gmail dot com Reported by: csa at dside dot dyndns dot org Summary: [PATCH] PDO/ODBC driver doesn't respect PDO::ATTR_TIMEOUT option Status: No Feedback Type: Bug Package: PDO related Operating System: Linux PHP Version: 5.2.6 Block user comment: N Private report: N New Comment: The bug is still there and needs a fix. Previous Comments: ------------------------------------------------------------------------ [2009-05-03 01:00:14] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-04-25 15:09:02] jani@php.net Is this patch still necessary in any branches? (Update version properly if it is, otherwise close this :) ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=45287&edit=1

« previous php.bugs (#205140) next »