cvs: php-src(PHP_5_0) / NEWS /ext/mssql php_mssql.c
| From: | Ilia Alshanetsky | Date: | Tue, 28 Sep 2004 14:07:59 +0000 |
| Subject: | cvs: php-src(PHP_5_0) / NEWS /ext/mssql php_mssql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28814@lists.php.net to get a copy of this message | ||
iliaa Tue Sep 28 10:07:59 2004 EDT
Modified files: (Branch: PHP_5_0)
/php-src NEWS
/php-src/ext/mssql php_mssql.c
Log:
MFH: Fixed bug #30224 (Sybase date strings are sometimes not null
terminated).
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.85&r2=1.1760.2.86&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.85 php-src/NEWS:1.1760.2.86
--- php-src/NEWS:1.1760.2.85 Mon Sep 27 18:21:52 2004
+++ php-src/NEWS Tue Sep 28 10:07:59 2004
@@ -1,6 +1,8 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2004, PHP 5.0.3
+- Fixed bug #30224 (Sybase date strings are sometimes not null terminated).
+ (Ilia)
- Fixed bug #30147 (OO sqlite_fetch_object did not reset error handler). (Wez)
- Fixed bug #30133 (get_current_user() crashes on Windows). (Edin)
- Fixed bug #30057 (did not detect IPV6 on FreeBSD 4.1). (Wez)
http://cvs.php.net/diff.php/php-src/ext/mssql/php_mssql.c?r1=1.137&r2=1.137.2.1&ty=u
Index: php-src/ext/mssql/php_mssql.c
diff -u php-src/ext/mssql/php_mssql.c:1.137 php-src/ext/mssql/php_mssql.c:1.137.2.1
--- php-src/ext/mssql/php_mssql.c:1.137 Sat Jul 10 03:46:08 2004
+++ php-src/ext/mssql/php_mssql.c Tue Sep 28 10:07:59 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mssql.c,v 1.137 2004/07/10 07:46:08 andi Exp $ */
+/* $Id: php_mssql.c,v 1.137.2.1 2004/09/28 14:07:59 iliaa Exp $ */
#ifdef COMPILE_DL_MSSQL
#define HAVE_MSSQL 1
@@ -862,6 +862,7 @@
res_buf = (unsigned char *) emalloc(res_length+1);
res_length = dbconvert(NULL,coltype(offset),dbdata(mssql_ptr->link,offset), res_length,
SQLCHAR,res_buf,-1);
+ res_buf[res_length] = '\0';
} else {
if (column_type == SQLDATETIM4) {
DBDATETIME temp;
@@ -931,7 +932,7 @@
res_buf = (unsigned char *) emalloc(res_length+1);
res_length = dbconvert(NULL,coltype(offset),dbdata(mssql_ptr->link,offset), res_length,
SQLCHAR, res_buf, -1);
-
+ res_buf[res_length] = '\0';
} else {
if (column_type == SQLDATETIM4) {
DBDATETIME temp;