From:             tac at smokescreen dot org
Operating system: ALL
PHP version:      5.1.2
PHP Bug Type:     Compile Failure
Bug description:  Fatal errors should return a 500, not 200

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 bug report at http://bugs.php.net/?id=36927&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36927&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36927&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36927&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36927&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36927&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36927&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36927&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36927&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36927&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36927&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36927&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36927&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36927&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36927&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36927&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36927&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36927&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36927&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36927&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36927&r=mysqlcfg

Reply via email to