PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Thank you for your help! If the status of the bug report you submitted changes, you will be notified. You may return here and check on the status or update your report at any time. That URL for your bug report is: http://bugs.php.net/45287.
Bug #45287 [PATCH] PDO/ODBC driver doesn't respect PDO::ATTR_TIMEOUT option
Submitted:16 Jun 2008 9:53pm UTC Modified: 3 May 1:00am UTC
From:csa at dside dot dyndns dot org Assigned to:
Status:No Feedback Category:PDO related
Version:5.2.6 OS:Linux
Votes:2 Avg. Score:5.0 ± 0.0 Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%) Same OS:0 (0.0%)
View/Vote Add Comment Developer Edit Submission

[16 Jun 2008 9:53pm UTC] 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.

[25 Apr 3:09pm UTC] jani@php.net
Is this patch still necessary in any branches? (Update version properly

if it is, otherwise close this :)
[3 May 1:00am UTC] 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".

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC