Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75073 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90700 invoked from network); 25 Jun 2014 14:49:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2014 14:49:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.54 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.192.54 mail-qg0-f54.google.com Received: from [209.85.192.54] ([209.85.192.54:52186] helo=mail-qg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/54-55756-D81EAA35 for ; Wed, 25 Jun 2014 10:49:49 -0400 Received: by mail-qg0-f54.google.com with SMTP id q107so1761674qgd.13 for ; Wed, 25 Jun 2014 07:49:46 -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=oZSGIUlVMFX/7hCZXSkxjS9VGecSyM+duVt65ysBtqY=; b=R9or0GpChkBTtGjmP5NnMpSyEnzZwOjgShnMG81TuanmMUXKIdDH5Dfi63l6VXRT6e pfY7xUN13XRhwgYFlVaTcijL5Op8qbz9AblYbeabVtAGDipCmyzsDzdqL0ERnjbYNtqx U7BddPhgjwKOsuoLvCwbTYS8ijSiqx8b8DMpo8E5jhMlIhvVMdplfdxlJBvYSmJRDp3z 58ZWnBnfyTBnZBTbLMoZLbWLAqwmDcTD30k3HWVZ/VaHguMw4gR7DFvIDN1miF5LtxBa eJzoCSj8adLB5vWdlWib4/M0loDJiYFudWy2prjHYH4EG3lICQLfiR0TbS0SXWPQpnIz ivfQ== MIME-Version: 1.0 X-Received: by 10.224.47.2 with SMTP id l2mr12404110qaf.85.1403707786354; Wed, 25 Jun 2014 07:49:46 -0700 (PDT) Received: by 10.140.25.36 with HTTP; Wed, 25 Jun 2014 07:49:46 -0700 (PDT) In-Reply-To: <53AADD67.309@gmail.com> References: <53AADD67.309@gmail.com> Date: Wed, 25 Jun 2014 16:49:46 +0200 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c2acc8f9816204fcaa2f3f 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) --001a11c2acc8f9816204fcaa2f3f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jun 25, 2014 at 4:32 PM, Rowan Collins wrote: > Chris Wright wrote (on 25/06/2014): > > I don't believe this is the case with any browser we might still be >> reasonably expected to support. The browser generic error pages are >> only displayed when there is no body content or a content-type it >> doesn't understand. >> > > Internet Explorer's "friendly error messages" are shown in preference to > any content smaller than a certain number of bytes (I can't remember the > exact threshold, but you will find plenty of minimal error pages padded o= ut > with garbage comments as a workaround). > > I've just had a quick look around online, and can't see anything saying > that this "feature" was removed in more recent versions. In fact, I just > did a quick test in IE11, and a page returning HTTP 500 and containing th= e > text "Done." is indeed replaced with the default error page. :( > > we can't(and shouldn't) try to pad the response, as it could be any format, not just html. but I do think that we could expect the developer to be able to use the view source functionallity to see the "true" output when presented with the generic IE error page. and this feature of ours breaks the semantic meaning of the http response code and causes problems for those using any other browser than IE. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a11c2acc8f9816204fcaa2f3f--