Edit report at https://bugs.php.net/bug.php?id=48539&edit=1
ID: 48539 Comment by: talktome at aboutandrew dot co dot uk Reported by: frase at cs dot wisc dot edu Summary: pdo_dblib fails to connect, throws empty PDOException "SQLSTATE[] (null)" Status: Closed Type: Bug Package: PDO related Operating System: * PHP Version: 5.2.10, 5.3.0RC4 Assigned To: felipe Block user comment: N Private report: N New Comment: This problem exists in php 5.4.10 Previous Comments: ------------------------------------------------------------------------ [2012-12-13 16:08:25] wdmeldon at gmail dot com I've tested this in 5.3.19 and was not able to replicate. ------------------------------------------------------------------------ [2012-07-13 13:10:20] snowcorenet at gmail dot com Could anyone tell me, please, if this is fixed in php 5.3? ------------------------------------------------------------------------ [2011-04-11 18:37:18] tom at punkave dot com Did this fix ever get put in PHP 5.3? I am getting this error exactly as originally described with all PHP 5.3.x versions tried. ------------------------------------------------------------------------ [2009-06-28 02:10:33] fel...@php.net This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Fixed in 5.2 and HEAD. 5.3 in soon. Thanks. ------------------------------------------------------------------------ [2009-06-27 21:43:08] tilo at levante dot de The following patch solved the issue in version 5.2.10 These three lines were added from version 5.2.9 to 5.2.10. I use a ms sql 7 server, maybe this server is not able th set the TEXTLIMIT to the given value. Greetings tilo --- ext/pdo_dblib/dblib_driver.c.orig 2009-03-20 23:14:17.000000000 +0100 +++ ext/pdo_dblib/dblib_driver.c 2009-06-28 01:50:50.000000000 +0200 @@ -230,9 +230,9 @@ goto cleanup; } - if (DBSETOPT(H->link, DBTEXTLIMIT, "2147483647") == FAIL) { - goto cleanup; - } +// if (DBSETOPT(H->link, DBTEXTLIMIT, "2147483647") == FAIL) { +// goto cleanup; +// } if (vars[3].optval && FAIL == dbuse(H->link, vars[3].optval)) { goto cleanup; ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=48539 -- Edit this bug report at https://bugs.php.net/bug.php?id=48539&edit=1