summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-12-03 02:27:11 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-12-03 02:27:11 +0000
commitfa3568d49097257d1a5d4349e03f81c4c347ceb8 (patch)
treebc04fed618aebccb460fe991ce302a89761902ba
parent84b568c4be997b6cd348b01fbdf3e1f875464276 (diff)
downloadphp-git-fa3568d49097257d1a5d4349e03f81c4c347ceb8.tar.gz
MFH: Fixed bug #30962 (mssql returns space for NULL columns).
-rw-r--r--NEWS1
-rw-r--r--ext/mssql/php_mssql.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index df4c223509..f5deac91e8 100644
--- a/NEWS
+++ b/NEWS
@@ -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
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index fbc5edef3f..20c72194c2 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -787,6 +787,10 @@ static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int off
char *data = charcol(offset);
length=dbdatlen(mssql_ptr->link,offset);
+ if (!length) {
+ ZVAL_EMPTY_STRING(result);
+ break;
+ }
#if ilia_0
while (length>0 && data[length-1] == ' ') { /* nuke trailing whitespace */
length--;