|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7780 Return of "Text" field returns only 4kB, but only in ISAPI-Mode
Submitted: 2000-11-13 06:22 UTC Modified: 2001-06-30 14:37 UTC
From: Yin dot Yang at gmx dot net Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.0.3pl1 OS: WinNT 4.0 SP6a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: Yin dot Yang at gmx dot net
New email:
PHP Version: OS:


 [2000-11-13 06:22 UTC] Yin dot Yang at gmx dot net
Working with IIS 4 and ISAPI, and having added the following lines to php.ini

mssql.textsize  = 8192 ;
mssql.textlimit = 8192 ;

a request of a field with Data-Type Text  > 4kB gives back only the first 4kB of the text (in general).

The interesting phenomenon is:

After restarting IIS completely (net stop iisadmin), the WHOLE text  out of the DB (appr. 6kB) will be returned, but only ONCE (meaning a reload in the browser, taking another browser, etc. gives again only the "cutted" text-field). 

Working in CGI-mode, the whole text will be returned every time.

A exemplary code-snippet, if it helps:

**shortened snip**
  $check = "SELECT * FROM $table WHERE $QUERY_STRING";
  $result = mssql_query($check) or die("Konnte die Datenbankabfrage nicht durchf?hren.");
  $head  = makehtmlchar($row[2]);
  $body  = makehtmlchar($row[3]);

  $mytext .= "
    <table width=610>
    <tr><td><h4><b>$head</b><br><font class=stdtext>($row[1])</font></h4></td></tr>
    <tr><td><font class=bigtext>$body  </font></td>\n";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-30 14:37 UTC]
This has been fixed. When running the ISAPI module, the php.ini file was not read correctly. Upgrade to latest version
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 20:01:30 2024 UTC