|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35037 unknown data type (36)
Submitted: 2005-10-31 18:11 UTC Modified: 2005-11-01 19:21 UTC
From: spooky at int13h dot com Assigned: fmk (profile)
Status: Closed Package: MSSQL related
PHP Version: 5CVS-2005-10-31 (snap) OS: FreeBSD 5.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: spooky at int13h dot com
New email:
PHP Version: OS:


 [2005-10-31 18:11 UTC] spooky at int13h dot com
For php5-200510311530 (Also 5.0.5 stable release)

./configure --prefix=/usr/local --with-apxs=/usr/local/apache/bin/apxs --with-libxml-dir=/usr/local 

For FreeTDS 0.63 
./configure --prefix=/usr/local 

When I fire an SQL Query that returns a uniqueidentifier I get the error 'Warning: mssql_query() [function.mssql-query]: column 1 has unknown data type (36) in /usr/websites/dev/testies.php on line 12'

Reproduce code:
function connect_sql ()
   $mssql_link = mssql_connect('<IP>', '<USER>','<PASSWORD>') or die ("Server Connection Error");
   $mssql_db = mssql_select_db('Websites',$mssql_link) or die("Database Error");


$query = 'select newid() as test';
echo $query . '<br/>';

Expected result:
No result should be returned. It should generate a new id.

Actual result:
'Warning: mssql_query() [function.mssql-query]: column 1 has unknown data type (36) in /usr/websites/dev/testies.php on line 12'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-01 11:38 UTC]
Frank, can you check this out please?

 [2005-11-01 19:21 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC