Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75076 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96421 invoked from network); 25 Jun 2014 15:25:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2014 15:25:53 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:50964] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F2/75-55756-EF9EAA35 for ; Wed, 25 Jun 2014 11:25:51 -0400 Received: by mail.experimentalworks.net (Postfix, from userid 1003) id E380141131; Wed, 25 Jun 2014 17:25:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on km31408.keymachine.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-HAM-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Received: from [192.168.2.31] (ppp-93-104-17-109.dynamic.mnet-online.de [93.104.17.109]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 4B6C6410E5; Wed, 25 Jun 2014 17:25:50 +0200 (CEST) To: Ferenc Kovacs Cc: Dmitry Stogov , PHP Internals , Dmitry Stogov In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Wed, 25 Jun 2014 17:25:12 +0200 Message-ID: <1403709912.12695.5.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: why do we not set http 500 for errors when the display_error is enabled From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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