#36927 [Opn->Bgs]: Fatal errors should return a 500, not 200

From: Date: Mon, 03 Apr 2006 10:56:08 +0000
Subject: #36927 [Opn->Bgs]: Fatal errors should return a 500, not 200
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95260@lists.php.net to get a copy of this message
ID: 36927 Updated by: tony2001@php.net Reported By: tac at smokescreen dot org -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: ALL PHP Version: 5.1.2 New Comment: Duplicate of bug #36636. Previous Comments: ------------------------------------------------------------------------ [2006-03-31 00:09:32] tac at smokescreen dot org Description: ------------ Fatal errors, including compile errors, return a status code 200, rather than a 500 (Server Error), which should be the default. It would make it easier to see problem pages in our logs if the pages returned a 500, since indeed there is a server error. I realize that in some cases the text has already been sent, but if buffering is on, then the behavior should be to return a 500. Reproduce code: --------------- <?php $x = new bad_object(); ?> Load the page, look at the header. It's a 200, should be a 500. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36927&edit=1

« previous php.bugs (#95260) next »