From: [EMAIL PROTECTED] Operating system: suse linux 7.2 / 7.3 PHP version: 4.2.2 PHP Bug Type: Output Control Bug description: php returns no data
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 & aktuelles"; $sInhalt = include("news.php"); break; case "lpp_p": $sTitel = "leistungen preise & produkte - printlayout"; $sInhalt = include("lpp_p.php"); break; case "lpp_sp": $sTitel = "leistungen preise & produkte - spieleprogrammierung"; $sInhalt = include("lpp_sp.php"); break; case "lpp_wh": $sTitel = "leistungen preise & produkte - webhosting"; $sInhalt = include("lpp_wh.php"); break; case "lpp_ipm": $sTitel = "leistungen preise & produkte - internet projekt & beteiligungs management"; $sInhalt = include("lpp_ipm.php"); break; case "lpp_ssn": $sTitel = "leistungen preise & produkte - software, server & netzwerktechnik"; $sInhalt = include("lpp_ssn.php"); break; case "lpp_os": $sTitel = "leistungen preise & produkte - online shop"; $sInhalt = include("lpp_os.php"); break; case "lpp_ie": $sTitel = "leistungen preise & produkte - internet entwicklung"; $sInhalt = include("lpp_ie.php"); break; default: $sTitel = "home & 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. -- Edit bug report at http://bugs.php.net/?id=19826&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19826&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19826&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19826&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19826&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19826&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19826&r=support Expected behavior: http://bugs.php.net/fix.php?id=19826&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19826&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19826&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19826&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19826&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19826&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19826&r=isapi