php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8030 Cropping of long pages with thttpd/php
Submitted: 2000-11-29 06:08 UTC Modified: 2001-03-10 17:32 UTC
From: louis at sixnet dot net Assigned:
Status: Closed Package: Other web server
PHP Version: 4.0.3pl1 OS: RedHat 6.2
Private report: No CVE-ID: None
 [2000-11-29 06:08 UTC] louis at sixnet dot net
I'm using PHP 4.0.3pl1+thttpd to print out a table of users and their details from an mSQL database.  However, the page cuts short at random points and fails to display to the end.  The database has about 230 entries and will probably grow to over 1000 in future.  When I run the exact same script on Apache+PHP 4.0.1pl2 it works fine.  Is this a PHP 4.0.3pl1 or a thttpd issue?

A slightly modified script (for security) so that you can replicate the error is here:

http://register.1shop.org:1234/users.php

The page should end with the user "yellowr" and then a link below the table to "View disk space usages".

The snippet of code doing the table generation is:

<table cellpadding="5" bgcolor="Navy">
<tr bgcolor="White"><td><b>User</b></td><td><b>Hosting Option</b></td><td><b>e-mail Address</b></td><td> </td></tr>
<?
  // Read in the table of users from the database
  $result=msql("oneshop","select user,hosting,email from users order by user");

  // Output the users and hosting option assigned to them as the first two cells on the row
  for($i=0;$i<msql_numrows($result);$i++)
  {
    echo "<tr bgcolor=\"White\"><td nowrap>",msql_result($result,$i,"user"),"</td>\n<td nowrap>";
        switch(msql_result($result,$i,"hosting"))
        {
          case 1: echo "1shop & sub-directory"; break;
          case 2: echo "1shop & own domain"; break;
          case 3: echo "hosted elsewhere"; break;
          default: echo "<b>Error in <i>users.php</i>:</b> Hosting option invalid.";
        }
        echo "</td>\n";
        echo "<td nowrap>*****(blanked intentionally)</td>\n";

        // Now output radio boxes to offer deletion the user on that row
        echo "<td nowrap><font size=\"-3\"><a href=\"users-del.php?user=",msql_result($result,$i,"user"),"\">DELETE</a></font></td>\n</tr>";
  }
?>
</table>

Thanks,

Louis

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-10 17:32 UTC] sas@php.net
This has been fixed in CVS and will be part of the PHP 4.0.5 release. Thanks for your report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 05:01:29 2024 UTC