From: jabberwocky at ibplanet dot com
Operating system: Any
PHP version: 4.3.4
PHP Bug Type: MSSQL related
Bug description: Incorrect handling of Null Fields/Numerical Fields with '0'

Description:
------------
With the new MSSQL so-called "bugfix" there seem to be a lot of problems,

first of all, when accessing the DB, and retrieving a field that has a
null value in it, a single space (" ") is returned instead of a null
string.

This is also the case if you retrieve a numerical value of 0 - instead of
retrieving the number 0 - a single space (" ") is returned.

This has caused all sort of problems with the MSSQL Database Driver that I
am currently coding for Invision Power Board
([url]http://www.invisionboard.com/?mssqldriver[/url])

Reproduce code:
---------------
Source Code available on request from PHP team by emailing
[email]jabberwockyibplanet.com[/email] (as this is a paid product)


--
Edit bug report at [url]http://bugs.php.net/?id=26351&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26351&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26351&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26351&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26351&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26351&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26351&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26351&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26351&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26351&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26351&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26351&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26351&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26351&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26351&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26351&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26351&r=float[/url]