Req #36636 [Com]: Fatal, compiler and related errors return a HTTP status code of 200.

From: Date: Fri, 18 Feb 2011 11:51:47 +0000
Subject: Req #36636 [Com]: Fatal, compiler and related errors return a HTTP status code of 200.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158857@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=36636&edit=1 ID: 36636 Comment by: tyra3l at gmail dot com Reported by: jonnay at jonnay dot net Summary: Fatal, compiler and related errors return a HTTP status code of 200. Status: Open Type: Feature/Change Request Package: Feature/Change Request Operating System: Any PHP Version: 5.1.2 Block user comment: N Private report: N New Comment: this is implemented yet imho. there is a bug with xdebug: http://bugs.php.net/bug.php?id=50921 Previous Comments: ------------------------------------------------------------------------ [2006-03-06 20:33:12] jonnay at jonnay dot net Description: ------------ When a script is executing, and an E_ERROR or an E_PARSE error occurs (and perhaps E_CORE_ERROR, E_COMPILE_ERROR), an HTTP status code of 500 should be sent (when possible), rather then a 200, because the server has in fact encountered an internal error, and everything is not actually OK. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=36636&edit=1

« previous php.bugs (#158857) next »