| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-01-08 01:07 UTC] fmk@php.net
  [2004-01-08 22:24 UTC] skissane at ics dot mq dot edu dot au
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 11:00:01 2025 UTC | 
Description: ------------ The following script returns an empty string on Solaris, when it should return a NULL (which it does, correctly, on Linux.) This is using FreeTDS 0.61.2 (same problem occurs with FreeTDS 0.52). This is talking to a SQL Server 2000 using TDS version 7.0 (switching to 8.0 made no difference). I've checked, and: mssql.compatability_mode = Off in php.ini. Reproduce code: --------------- <? $id = mssql_connect("<servername>","<username>","<password>"); $q = mssql_query("SELECT NULL",$id); $f = mssql_fetch_array($q); echo gettype($f[0]); Expected result: ---------------- NULL Actual result: -------------- string