iliaa Sun Feb 10 14:49:23 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/mssql php_mssql.c
Log:
Possible fix for bug #43861
http://cvs.php.net/viewvc.cgi/php-src/ext/mssql/php_mssql.c?r1=1.152.2.13.2.4.2.3&r2=1.152.2.13.2.4.2.4&diff_format=u
Index: php-src/ext/mssql/php_mssql.c
diff -u php-src/ext/mssql/php_mssql.c:1.152.2.13.2.4.2.3
php-src/ext/mssql/php_mssql.c:1.152.2.13.2.4.2.4
--- php-src/ext/mssql/php_mssql.c:1.152.2.13.2.4.2.3 Mon Dec 31 07:17:10 2007
+++ php-src/ext/mssql/php_mssql.c Sun Feb 10 14:49:23 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mssql.c,v 1.152.2.13.2.4.2.3 2007/12/31 07:17:10 sebastian Exp $ */
+/* $Id: php_mssql.c,v 1.152.2.13.2.4.2.4 2008/02/10 14:49:23 iliaa Exp $ */
#ifdef COMPILE_DL_MSSQL
#define HAVE_MSSQL 1
@@ -890,6 +890,10 @@
DBDATEREC dateinfo;
int res_length =
dbdatlen(mssql_ptr->link,offset);
+ if (res_length == -1) {
+ res_length = 255;
+ }
+
if ((column_type != SQLDATETIME && column_type
!= SQLDATETIM4) || MS_SQL_G(datetimeconvert)) {
switch (column_type) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php