Bug #66062 [NEW]: PDO_DBLIB support for PDO::ATTR_TIMEOUT

From: Date: Fri, 08 Nov 2013 12:43:34 +0000
Subject: Bug #66062 [NEW]: PDO_DBLIB support for PDO::ATTR_TIMEOUT
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182661@lists.php.net to get a copy of this message
From: sergiu dot ionescu at gmail dot com Operating system: Ubuntu 12.04 LTS PHP version: Irrelevant Package: PDO related Bug Type: Bug Bug description:PDO_DBLIB support for PDO::ATTR_TIMEOUT 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 bug report at https://bugs.php.net/bug.php?id=66062&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66062&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66062&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66062&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66062&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66062&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66062&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66062&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66062&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66062&r=support Expected behavior: https://bugs.php.net/fix.php?id=66062&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66062&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66062&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66062&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66062&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66062&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66062&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66062&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66062&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66062&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66062&r=mysqlcfg

« previous php.bugs (#182661) next »