Re: Re: why do we not set http 500 for errors when the display_error is enabled
| From: | Johannes Schlüter | Date: | Wed, 25 Jun 2014 15:25:12 +0000 |
| Subject: | Re: Re: why do we not set http 500 for errors when the display_error is enabled | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75076@lists.php.net to get a copy of this message | ||
On Wed, 2014-06-25 at 16:32 +0200, Ferenc Kovacs wrote:
>
> > We can't set 500 response code if HTTP headers were already sent.
> >
>
> we have the !SG(headers_sent) check for that, and I'm not proposing to
> remove that(albeit I think that we could handle the special scenario,
> when
> the only output is generated by the error, but that is a separate
> topic).
>
>
I believe this causes some inconsistency, sometimes status code is
changed, sometimes not. Uncertain which is worse - wrong code or harder
to predict behavior.
johannes