iliaa Tue Sep 28 10:09:01 2004 EDT
Modified files: (Branch: PHP_4_3)
/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.1247.2.734&r2=1.1247.2.735&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.734 php-src/NEWS:1.1247.2.735
--- php-src/NEWS:1.1247.2.734 Sat Sep 25 21:17:41 2004
+++ php-src/NEWS Tue Sep 28 10:09:00 2004
@@ -3,6 +3,8 @@
?? ??? 2004, Version 4.3.10
- Backported Marcus' foreach() speedup patch from PHP 5.x. (Derick)
- Fixed potential problems with unserializing invalid serialize data. (Marcus)
+- Fixed bug #30224 (Sybase date strings are sometimes not null terminated).
+ (Ilia)
- Fixed bug #30057 (did not detect IPV6 on FreeBSD 4.1). (Wez)
- Fixed bug #29805 (HTTP Authentication Issues). (Uwe Schindler)
- Fixed bug #28325 (Circular references not properly serialised). (Moriyoshi)
http://cvs.php.net/diff.php/php-src/ext/mssql/php_mssql.c?r1=1.86.2.35&r2=1.86.2.36&ty=u
Index: php-src/ext/mssql/php_mssql.c
diff -u php-src/ext/mssql/php_mssql.c:1.86.2.35 php-src/ext/mssql/php_mssql.c:1.86.2.36
--- php-src/ext/mssql/php_mssql.c:1.86.2.35 Wed Jul 21 12:25:27 2004
+++ php-src/ext/mssql/php_mssql.c Tue Sep 28 10:09:01 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mssql.c,v 1.86.2.35 2004/07/21 16:25:27 sesser Exp $ */
+/* $Id: php_mssql.c,v 1.86.2.36 2004/09/28 14:09:01 iliaa Exp $ */
#ifdef COMPILE_DL_MSSQL
#define HAVE_MSSQL 1
@@ -866,6 +866,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;
@@ -939,7 +940,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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php