Req #66062 [Fbk->NoF]: PDO_DBLIB support for PDO::ATTR_TIMEOUT
| From: | php-bugs at lists dot php dot net | Date: | Tue, 30 Dec 2014 10:42:07 +0000 |
| Subject: | Req #66062 [Fbk->NoF]: PDO_DBLIB support for PDO::ATTR_TIMEOUT | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189439@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66062&edit=1
ID: 66062
Updated by: php-bugs@lists.php.net
Reported by: sergiu dot ionescu at gmail dot com
Summary: PDO_DBLIB support for PDO::ATTR_TIMEOUT
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: PDO DBlib
Operating System: Ubuntu 12.04 LTS
PHP Version: Irrelevant
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2014-10-23 06:20:18] ssufficool@php.net
Please try using this snapshot:
http://snaps.php.net/php-trunk-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Actually fixed with commit. Mislabeled as fix for bug #66063
------------------------------------------------------------------------
[2013-11-26 14:21:37] sergiu dot ionescu at gmail dot com
At this point it seems that this is not possible from the PHP API.
The workaround that i have found is changing the freetds configuration(/etc/freetds/freetds.conf):
connect timeout = 1
This may be closed.
Thanks.
------------------------------------------------------------------------
[2013-11-08 12:43:33] sergiu dot ionescu at gmail dot com
Description:
------------
I am not sure if this is a bug or just an unsupported feature.
I am interested in setting the connection timeout for a PDO_DBLIB connection to an MSSQL database.
Could you please point me to the right approach?
Thanks.
Test script:
---------------
<?php
$connection = new PDO(
'dblib:dbname=****;type=pdo_mssql;host=****;model=mssql;active=1;charset=',
$config['username'],
$config['password'],
array(PDO::ATTR_TIMEOUT => 1)
);
Expected result:
----------------
I expect the connection to timeout in 1 second.
Actual result:
--------------
The connection timeouts in over 10 seconds.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66062&edit=1