PHP 4.0 Bug #7780: Return of "Text" field returns only 4kB, but only in ISAPI-Mode
| From: | Yin dot Yang at gmx dot net | Date: | Mon, 13 Nov 2000 11:22:01 +0000 |
| Subject: | PHP 4.0 Bug #7780: Return of "Text" field returns only 4kB, but only in ISAPI-Mode | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37888@lists.php.net to get a copy of this message | ||
From: Yin.Yang@gmx.net
Operating system: WinNT 4.0 SP6a
PHP version: 4.0.3pl1
PHP Bug Type: MSSQL related
Bug description: Return of "Text" field returns only 4kB, but only in ISAPI-Mode
Working with IIS 4 and ISAPI, and having added the following lines to php.ini
*snip*
mssql.textsize = 8192 ;
mssql.textlimit = 8192 ;
*snip*
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.");
$row=mssql_fetch_row($result);
$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";
**snip**
--
Edit Bug report at: http://bugs.php.net/?id=7780&edit=1