[PHP-CVS] cvs: php-src(PHP_4_3) / NEWS /ext/mssql php_mssql.c
iliaa Mon Dec 6 14:44:34 2004 EDT Modified files: (Branch: PHP_4_3) /php-srcNEWS /php-src/ext/mssql php_mssql.c Log: Revert, this is not needed after all. http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.760r2=1.1247.2.761ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.760 php-src/NEWS:1.1247.2.761 --- php-src/NEWS:1.1247.2.760 Thu Dec 2 21:27:11 2004 +++ php-src/NEWSMon Dec 6 14:44:32 2004 @@ -1,7 +1,6 @@ PHP 4 NEWS ||| ?? Nov 2004, Version 4.3.10 -- Fixed bug #30962 (mssql returns space for NULL columns). (Ilia) 23 Nov 2004, Version 4.3.10RC1 - Added the %F modifier to *printf to render a non-locale-aware representation http://cvs.php.net/diff.php/php-src/ext/mssql/php_mssql.c?r1=1.86.2.38r2=1.86.2.39ty=u Index: php-src/ext/mssql/php_mssql.c diff -u php-src/ext/mssql/php_mssql.c:1.86.2.38 php-src/ext/mssql/php_mssql.c:1.86.2.39 --- php-src/ext/mssql/php_mssql.c:1.86.2.38 Thu Dec 2 21:27:11 2004 +++ php-src/ext/mssql/php_mssql.c Mon Dec 6 14:44:33 2004 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: php_mssql.c,v 1.86.2.38 2004/12/03 02:27:11 iliaa Exp $ */ +/* $Id: php_mssql.c,v 1.86.2.39 2004/12/06 19:44:33 iliaa Exp $ */ #ifdef COMPILE_DL_MSSQL #define HAVE_MSSQL 1 @@ -787,10 +787,6 @@ char *data = charcol(offset); length=dbdatlen(mssql_ptr-link,offset); - if (!length) { - ZVAL_EMPTY_STRING(result); - break; - } #if ilia_0 while (length0 data[length-1] == ' ') { /* nuke trailing whitespace */ length--; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_4_3) / NEWS /ext/mssql php_mssql.c
iliaa Thu Dec 2 21:27:12 2004 EDT Modified files: (Branch: PHP_4_3) /php-srcNEWS /php-src/ext/mssql php_mssql.c Log: MFH: Fixed bug #30962 (mssql returns space for NULL columns). http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.759r2=1.1247.2.760ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.759 php-src/NEWS:1.1247.2.760 --- php-src/NEWS:1.1247.2.759 Sun Nov 28 12:15:30 2004 +++ php-src/NEWSThu Dec 2 21:27:11 2004 @@ -1,6 +1,7 @@ PHP 4 NEWS ||| ?? Nov 2004, Version 4.3.10 +- Fixed bug #30962 (mssql returns space for NULL columns). (Ilia) 23 Nov 2004, Version 4.3.10RC1 - Added the %F modifier to *printf to render a non-locale-aware representation http://cvs.php.net/diff.php/php-src/ext/mssql/php_mssql.c?r1=1.86.2.37r2=1.86.2.38ty=u Index: php-src/ext/mssql/php_mssql.c diff -u php-src/ext/mssql/php_mssql.c:1.86.2.37 php-src/ext/mssql/php_mssql.c:1.86.2.38 --- php-src/ext/mssql/php_mssql.c:1.86.2.37 Wed Sep 29 08:40:09 2004 +++ php-src/ext/mssql/php_mssql.c Thu Dec 2 21:27:11 2004 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: php_mssql.c,v 1.86.2.37 2004/09/29 12:40:09 iliaa Exp $ */ +/* $Id: php_mssql.c,v 1.86.2.38 2004/12/03 02:27:11 iliaa Exp $ */ #ifdef COMPILE_DL_MSSQL #define HAVE_MSSQL 1 @@ -787,6 +787,10 @@ char *data = charcol(offset); length=dbdatlen(mssql_ptr-link,offset); + if (!length) { + ZVAL_EMPTY_STRING(result); + break; + } #if ilia_0 while (length0 data[length-1] == ' ') { /* nuke trailing whitespace */ length--; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_4_3) / NEWS /ext/mssql php_mssql.c
iliaa Tue Sep 28 10:09:01 2004 EDT Modified files: (Branch: PHP_4_3) /php-srcNEWS /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.734r2=1.1247.2.735ty=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/NEWSTue 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.35r2=1.86.2.36ty=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
[PHP-CVS] cvs: php-src(PHP_4_3) / NEWS /ext/mssql php_mssql.c
iliaa Tue Oct 14 23:32:18 2003 EDT Modified files: (Branch: PHP_4_3) /php-srcNEWS /php-src/ext/mssql php_mssql.c Log: MFH: Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql). Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.437 php-src/NEWS:1.1247.2.438 --- php-src/NEWS:1.1247.2.437 Tue Oct 14 20:14:36 2003 +++ php-src/NEWSTue Oct 14 23:32:16 2003 @@ -12,6 +12,7 @@ - Fixed bug #25800 (parse_url() could not parse urls with empty port). (Ilia) - Fixed bug #25780 (ext/session: invalid session.cookie_lifetime makes session_start() to crash in win32). (Jani) +- Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql). (Ilia) - Fixed bug #25770 (Segfault with PHP and bison 1.875). ([EMAIL PROTECTED], Marcus) - Fixed bug #25764 (ldap_get_option() crashes with unbound ldap link). (Jani) - Fixed bug #25758 (var_export does not escape ' \ inside array keys). (Ilia) Index: php-src/ext/mssql/php_mssql.c diff -u php-src/ext/mssql/php_mssql.c:1.86.2.24 php-src/ext/mssql/php_mssql.c:1.86.2.25 --- php-src/ext/mssql/php_mssql.c:1.86.2.24 Thu Aug 28 16:01:29 2003 +++ php-src/ext/mssql/php_mssql.c Tue Oct 14 23:32:18 2003 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: php_mssql.c,v 1.86.2.24 2003/08/28 20:01:29 iliaa Exp $ */ +/* $Id: php_mssql.c,v 1.86.2.25 2003/10/15 03:32:18 iliaa Exp $ */ #ifdef COMPILE_DL_MSSQL #define HAVE_MSSQL 1 @@ -784,9 +784,11 @@ char *data = charcol(offset); length=dbdatlen(mssql_ptr-link,offset); +#if ilia_0 while (length0 data[length-1] == ' ') { /* nuke trailing whitespace */ length--; } +#endif Z_STRVAL_P(result) = estrndup(data,length); Z_STRLEN_P(result) = length; Z_TYPE_P(result) = IS_STRING; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php