Bug #68228 [NEW]: unknown data type 98
| From: | cweiske@php.net | Date: | Tue, 14 Oct 2014 14:17:34 +0000 |
| Subject: | Bug #68228 [NEW]: unknown data type 98 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188084@lists.php.net to get a copy of this message | ||
From: cweiske
Operating system:
PHP version: 5.6.1
Package: MSSQL related
Bug Type: Bug
Bug description:unknown data type 98
Description:
------------
Connecting to a MSSQL server and selecting the server property
"ProductLevel" results in PHP giving a warning:
> Warning: mssql_query(): column 1 has unknown data type (98)
According to MSDN[1] it has a "Base data type: nvarchar(128)".
The same warning happens with server property "Edition".
Happens on an MSSQL server ProductVersion "11.0.3128.0", Edition
"Standard Edition (64-bit)", ProductLevel "SP1".
[1] http://msdn.microsoft.com/en-us/library/ms174396.aspx
Test script:
---------------
test.php:
$link = mssql_connect($host, $user, $pass);
mssql_query("SELECT SERVERPROPERTY('ProductLevel')", $link);
/etc/freetds/freetds.conf:
[global]
tds version = 8.0
client charset = UTF-8
--
Edit bug report at https://bugs.php.net/bug.php?id=68228&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68228&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68228&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68228&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68228&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68228&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68228&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68228&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68228&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68228&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68228&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68228&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68228&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68228&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68228&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68228&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68228&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68228&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68228&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68228&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68228&r=mysqlcfg