Bug #17424: Apache sends HTTP 500, but still sends PHP HTML without error

From: Date: Sat, 25 May 2002 05:43:59 +0000
Subject: Bug #17424: Apache sends HTTP 500, but still sends PHP HTML without error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8491@lists.php.net to get a copy of this message
From: ashpool7@yahoo.com Operating system: Windows NT 4.0 SP6a + Fixes PHP version: 4.2.1 PHP Bug Type: Apache related Bug description: Apache sends HTTP 500, but still sends PHP HTML without error Setup: * Windows NT SP6a with all the fixins' and none of the fat (No IIS, etc). * Apache 1.3.23, PHP as a module. Mostly default php.ini settings. Using the zip binary. I upgraded from PHP 4.1.1 to 4.2.0 on my site and immediately ran into problems with users of WebTV and other unreported browsers saying they could not access the site. Using Ethereal, I discovered that Apache was sending "500 Internal Server Error" along with the rest of the headers versus a HTTP 200, but was **STILL** sending the PHP generated HTML. There is no error reported in the Apache error log (the access log was too large to analyze on the server, and probably only says it served a "500" anyway) or any other clues in the HTTP headers. A typical page that generates this error would contain the following: <? $description = "bla bla"; $keywords = "bla bla"; $pagetitle = "bla bla"; include("page_header.php"); ?> ... some HTML here ... <? include("lower_content.html"); include("page_footer.php"); ?> Internet Explorer 5.5 SP2 and Netscape 4.78 appear to ignore the HTTP 500 message and pretend nothing happened. I'll see if I can get back with some more stats. (As a totally unrelated side note, the Microsoft SQL DLL is broken in the v4.1.0< win32 binary dist. Its build 'signature' doesn't match and the main PHP DLL detects, complains, and disables it.) -- Edit bug report at http://bugs.php.net/?id=17424&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17424&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17424&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17424&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17424&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17424&r=support Expected behavior: http://bugs.php.net/fix.php?id=17424&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17424&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17424&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17424&r=globals

« previous php.bugs (#8491) next »