[Pkg-php-commits] [php/debian-experimental] Fix an unconditional limit on dblib_driver.c (Closes: #534881)
Raphael Geissert
atomo64 at gmail.com
Mon Jan 11 16:44:09 UTC 2010
Patch was cherry-picked from upstream. Thanks to Dr. Tilo Levante for
the report.
---
debian/patches/mssql-null-exception.patch | 16 ++++++++++++++++
debian/patches/series | 1 +
2 files changed, 17 insertions(+), 0 deletions(-)
create mode 100644 debian/patches/mssql-null-exception.patch
diff --git a/debian/patches/mssql-null-exception.patch b/debian/patches/mssql-null-exception.patch
new file mode 100644
index 0000000..49baa7c
--- /dev/null
+++ b/debian/patches/mssql-null-exception.patch
@@ -0,0 +1,16 @@
+Index: php/ext/pdo_dblib/dblib_driver.c
+===================================================================
+--- php.orig/ext/pdo_dblib/dblib_driver.c
++++ php/ext/pdo_dblib/dblib_driver.c
+@@ -230,9 +230,11 @@ static int pdo_dblib_handle_factory(pdo_
+ goto cleanup;
+ }
+
++#if PHP_DBLIB_IS_MSSQL
+ if (DBSETOPT(H->link, DBTEXTLIMIT, "2147483647") == FAIL) {
+ goto cleanup;
+ }
++#endif
+
+ if (vars[3].optval && FAIL == dbuse(H->link, vars[3].optval)) {
+ goto cleanup;
diff --git a/debian/patches/series b/debian/patches/series
index 165db4b..a26c826 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -34,3 +34,4 @@ libedit_is_editline.patch
bad_whatis_entries.patch
gentoo/006_ext-curl-set_opt-crash.patch
gentoo/009_ob-memory-leaks.patch
+mssql-null-exception.patch
--
1.6.3.3
More information about the Pkg-php-commits
mailing list