Patch mssql-null-exception for PDO related Bug #48539
Patch version 2013-09-25 14:55 UTC
Return to Bug #48539 |
Download this patch
Patch Revisions:
Developer: kaplan@php.net
Description: Fix an unconditional limit on dblib_driver.c
Author: OndÅ™ej Surý <ondrej@sury.org>
Bug: https://bugs.php.net/bug.php?id=48539
Bug-Debian: http://bugs.debian.org/534881
--- php5.orig/ext/pdo_dblib/dblib_driver.c
+++ php5/ext/pdo_dblib/dblib_driver.c
@@ -362,8 +362,10 @@ static int pdo_dblib_handle_factory(pdo_
goto cleanup;
}
+#if PHP_DBLIB_IS_MSSQL
/* dblib do not return more than this length from text/image */
DBSETOPT(H->link, DBTEXTLIMIT, "2147483647");
+#endif
/* limit text/image from network */
DBSETOPT(H->link, DBTEXTSIZE, "2147483647");
|