--- php_mssql.c.orig 2007-10-20 01:05:10.000000000 +0200 +++ php_mssql.c 2007-10-20 19:55:52.000000000 +0200 @@ -813,7 +813,7 @@ static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int offset,zval *result, int column_type TSRMLS_DC) { - if (dbdata(mssql_ptr->link,offset) == NULL && dbdatlen(mssql_ptr->link,offset) == 0) { + if (dbdata(mssql_ptr->link,offset) == NULL && dbdatlen(mssql_ptr->link,offset) == 0 && dbdatlenreallynegative(mssql_ptr->link,offset) == TRUE) { ZVAL_NULL(result); return; }