|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7043 mssql_result truncates fields that are greater than 251 chars
Submitted: 2000-10-05 17:19 UTC Modified: 2002-06-16 08:24 UTC
From: platiau at fucam dot ac dot be Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 3.0.16 OS: Windows 95/NT/2000
Private report: No CVE-ID: None
 [2000-10-05 17:19 UTC] platiau at fucam dot ac dot be
With php3_mssql.dll and php3_mssql70.dll

Fields in the database are corrects: 

Table "Test" with one field "text" defined in varchar(800)

When I try to display result of the table, the field "text" is
truncated to 251 chars (We're running IIS5/Win2K/PHP3.0.16/MSSQL7.0)

In older version of MSSQL (6.5), varchar was limited to 255 chars. 
Now in 7.0 version, we could go up to 8192 chars. 

Perharps you didn't modify the type of the varchar in the php3_mssql70.dll ... 

Could you test it ? 


Philippe Platiau


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 08:24 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 13:01:28 2024 UTC