summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-12-03 02:26:36 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-12-03 02:26:36 +0000
commit238393e58ae48d0a3d9081107889b54960e8cacf (patch)
tree0c1580afc854737657441c4221d549f54b162de2 /ext/mssql/php_mssql.c
parent3de8ff865af80d62935b2349137193832565f2ce (diff)
downloadphp-git-238393e58ae48d0a3d9081107889b54960e8cacf.tar.gz
MFH: Fixed bug #30962 (mssql returns space for NULL columns).
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r--ext/mssql/php_mssql.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index ebb9d9a82b..09c1bf8f52 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -800,6 +800,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--;