php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19826 php returns no data
Submitted: 2002-10-09 02:27 UTC Modified: 2002-10-27 19:13 UTC
From: fabian at szeneleben dot de Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.2.2 OS: suse linux 7.2 / 7.3
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fabian at szeneleben dot de
New email:
PHP Version: OS:

 

 [2002-10-09 02:27 UTC] fabian at szeneleben dot de
sometimes when i click on a link the php-script returns no data, so a blank page is displayed. this error just happens sometimes. not regular. also this happens more often when i submit a <form> (doesn't matter if POST oder GET method).

here an example script (index.php):

<?
include("include/server.php");
include("include/settings.php");

$oPage = new XTemplate ("html/root.html");

switch ($what) {
	case "ha":		$sTitel	=	"home &amp; aktuelles";																	$sInhalt =	include("news.php");		break;
	case "lpp_p":	$sTitel	=	"leistungen preise &amp; produkte - printlayout";										$sInhalt =	include("lpp_p.php");		break;
	case "lpp_sp":	$sTitel	=	"leistungen preise &amp; produkte - spieleprogrammierung";								$sInhalt =	include("lpp_sp.php");		break;
	case "lpp_wh":	$sTitel	=	"leistungen preise &amp; produkte - webhosting";										$sInhalt =	include("lpp_wh.php");		break;
	case "lpp_ipm":	$sTitel	=	"leistungen preise &amp; produkte - internet projekt &amp; beteiligungs management";	$sInhalt =	include("lpp_ipm.php");		break;
	case "lpp_ssn":	$sTitel	=	"leistungen preise &amp; produkte - software, server &amp; netzwerktechnik";			$sInhalt =	include("lpp_ssn.php");		break;
	case "lpp_os":	$sTitel	=	"leistungen preise &amp; produkte - online shop";										$sInhalt =	include("lpp_os.php");		break;
	case "lpp_ie":	$sTitel	=	"leistungen preise &amp; produkte - internet entwicklung";								$sInhalt =	include("lpp_ie.php");		break;
	default:		$sTitel	=	"home &amp; aktuelles";																	$sInhalt =	include("news.php");		break;
}

if ($what == "ha" || !$what) {
	if (!$show) {
		$oPage->parse("root.fragen");
	}
}

$oPage->assign("FILE",		$PHP_SELF);
$oPage->assign("TITEL",		$sTitel);
$oPage->assign("INHALT",	$sInhalt);

$oPage->parse("root");
$oPage->out("root");
?>

the file "server.php" just checks on which server the script is running an sets the include_path and global mysql-access variables. and it includes 5 more php files which contains classes and functions.

the file "settings.php" has the following content:
<?
set_time_limit(0);

header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate ("D, d M Y H:i:s") . " GMT"); 
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");

session_register("sLanguage");
?>

when i remove the header-data the problem still exists.

also i tried the following in my "index.php"

<?
include("include/server.php");
include("include/settings.php");
?>
<div></div>
<?
$oPage = new XTemplate ("html/root.html");

if ($what == "ha" || !$what) {
	if (!$show) {
		$oPage->parse("root.fragen");
	}
}

$oPage->assign("FILE",		$PHP_SELF);
$oPage->assign("TITEL",		$sTitel);
$oPage->assign("INHALT",	$sInhalt);

$oPage->parse("root");
$oPage->out("root");
?>

the problem still exists ...

i use apache 1.3.26.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-09 08:53 UTC] iliaa@php.net
Could you please provide a smaller example that can demonstrate the problem and that does not rely on inclusion of other files. Thanks.
 [2002-10-09 09:30 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

This is most likely session related problem, please try the snapshot. (check also your error_log for possible segfaults at the time..)


 [2002-10-27 19:13 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC