Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75080 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11026 invoked from network); 25 Jun 2014 17:52:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2014 17:52:17 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.169 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.169 mail-qc0-f169.google.com Received: from [209.85.216.169] ([209.85.216.169:45767] helo=mail-qc0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/F7-55756-F4C0BA35 for ; Wed, 25 Jun 2014 13:52:15 -0400 Received: by mail-qc0-f169.google.com with SMTP id c9so2100367qcz.0 for ; Wed, 25 Jun 2014 10:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+eavs0Q7PkjIjz+GOj8Vb0bbaWMHIkjaG6/YcwOC32w=; b=GSNvqzLQumIMTI9qYqFBPhnGlgXvIVzuQXLpD0CayNlfCHhjWlLpvoDH9jQpi/+RAc y8c4QUxSmOlFnG2QVWelWR62tr+YZAvPRcxaODS7tZXiY3jr7VBOi4q4/Dy4E5A4mtgk vY5rQUBrbfWF0r0H2FC/E79YqdWBnV5K7yLQgYkYsbg1e9FtNKS+W8/mF9fXlyZwcTxL XOiBd6+U0PWj862GicjiYLrnyKl6MB8A6+1rJ1K/lU0U/Kxng+ihBuMIMeO/eTPA0lYF zSMcfzsnX1ClgVZZ7OIVEg4q7ki+ooe0EpbxGuSAX3hgTjisT2ikCLFyeBmjblNZWjNZ 9YxA== MIME-Version: 1.0 X-Received: by 10.140.27.23 with SMTP id 23mr13520489qgw.94.1403718732847; Wed, 25 Jun 2014 10:52:12 -0700 (PDT) Received: by 10.140.25.36 with HTTP; Wed, 25 Jun 2014 10:52:12 -0700 (PDT) In-Reply-To: <53AAFF9B.1020005@anderiasch.de> References: <53AAED25.30509@gmail.com> <53AAFF9B.1020005@anderiasch.de> Date: Wed, 25 Jun 2014 19:52:12 +0200 Message-ID: To: Florian Anderiasch Cc: Rowan Collins , PHP Internals Content-Type: multipart/alternative; boundary=001a11c14a7c6fa5eb04fcacbce2 Subject: Re: [PHP-DEV] Re: why do we not set http 500 for errors when the display_error is enabled From: tyra3l@gmail.com (Ferenc Kovacs) --001a11c14a7c6fa5eb04fcacbce2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jun 25, 2014 at 6:58 PM, Florian Anderiasch wrote: > On 25.06.2014 17:39, Rowan Collins wrote: > > Andrea Faulds wrote (on 25/06/2014): > >> On 25 Jun 2014, at 15:32, Ferenc Kovacs wrote: > >> > >>> I see. I assume this is related to > >>> http://support.microsoft.com/kb/294807 > >>> where by default IE shows pretty but generic message for non-2xx > >>> messages > >>> if the response content length is less than or equal to a specific > >>> threshold(512 bytes for 500 errors for example). > >>> I don't think that it was a good idea to patch our error handling for > >>> the > >>> sake of an usability feature only present in one browser. > >> Don=E2=80=99t other browsers do this as well? I believe Chrome and Fir= efox do, > >> at least for 404 errors. > > > > Firefox and Chrome only show the default message if the response length > > is ZERO bytes. Even the 26-byte response generated by empty content > > going through gzip buffering appears to be enough for them both to show > > the "real" output (in that case, a blank page). > > > > So it really is just IE that has this notion of the error message havin= g > > to be "long enough". > > It might be cache settings, but my Chromium definitely does not show a > "default message" if I get a 204 with zero bytes, it keeps displaying > the old content (if the url is the same). Developer Tools of course show > this, but not the actual contents of the browser tab. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > that is a special case, and that is how it should be handled: http://www.ietf.org/rfc/rfc2616.txt If the client is a user agent, it SHOULD NOT change its document view from that which caused the request to be sent. This response is primarily intended to allow input for actions to take place without causing a change to the user agent's active document view, although any new or updated metainformation SHOULD be applied to the document currently in the user agent's active view. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11c14a7c6fa5eb04fcacbce2--