|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2009-07-30 07:56 UTC] jochem dot blok at fasterforward dot nl
  [2016-10-15 23:13 UTC] kalle@php.net
 
-Status: Open
+Status: Wont fix
  [2016-10-15 23:13 UTC] kalle@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 03:00:01 2025 UTC | 
Description: ------------ This is the same bug as reported in bug: 39213. An empty string is returned as NULL. Reproduce code: --------------- $conn = mssql_connect('host','user','password', true); mssql_query("CREATE TABLE #tmp(c VARCHAR(10) NULL)", $conn) or die("error querying"); mssql_query("INSERT INTO #tmp VALUES('')", $conn) or die("error querying"); $res = mssql_query("SELECT * FROM #tmp", $conn) or die("query"); $row = mssql_fetch_assoc($res); $s = is_null($row['c']) ? 'NULL' : $row['c']; echo "got -$s-\n"; Expected result: ---------------- var_dump($s) should print string(0) "" Actual result: -------------- var_dump($s) print NULL