Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75074 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91966 invoked from network); 25 Jun 2014 14:50:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2014 14:50:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.49 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.192.49 mail-qg0-f49.google.com Received: from [209.85.192.49] ([209.85.192.49:33991] helo=mail-qg0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id ED/94-55756-CB1EAA35 for ; Wed, 25 Jun 2014 10:50:37 -0400 Received: by mail-qg0-f49.google.com with SMTP id f51so1740232qge.36 for ; Wed, 25 Jun 2014 07:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ldyQndhgqroUDEuSxqIQiDCIXnoyvG/Dc8xRGTuVB34=; b=Ak2Jqf7T0x0QLm8URG1EZ+AOs3lTmqSOyM0GAZkS9WWGgKB8D4qeJpIp2bklzkxTe+ vSmkITJI5pCudkf5ebBDmlyh1hvoQnb+q31uv7EtriEOURwcooSZE4WxqqDMq6zBOBUR amzoInBFCaPc68fxzgCFzeSANJ/t3MYtMEKhboEpyB11U2qwkH5GeeTqOit2JTmbnCgj zhFSGJfHHpAodUHZNwAJ8Fbkw4RvFwxgk5bv/WaHaxYUh9RCnYm/Re5JEiizuwymgqAg tO44OfEij+XZ5yhDSL9VMUS4BZ5RZs7q/TYWP5Pe6jquRLd8oTK5MMGJkJq6PpPuDVRX 04Yg== MIME-Version: 1.0 X-Received: by 10.224.98.197 with SMTP id r5mr7171316qan.57.1403707834389; Wed, 25 Jun 2014 07:50:34 -0700 (PDT) Sender: are.you.winning@gmail.com Received: by 10.229.149.73 with HTTP; Wed, 25 Jun 2014 07:50:34 -0700 (PDT) In-Reply-To: <53AADD67.309@gmail.com> References: <53AADD67.309@gmail.com> Date: Wed, 25 Jun 2014 15:50:34 +0100 X-Google-Sender-Auth: horzJeSj0Nf2Cd7zYN5DYOPjTiY Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: why do we not set http 500 for errors when the display_error is enabled From: cw@daverandom.com (Chris Wright) On 25 June 2014 15:32, 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 out 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 the text > "Done." is indeed replaced with the default error page. :( I tested briefly on my machine before sending the previous mail, but it looks like I have the option set as outlined in the KB article Ferenc linked - sorry for the misinformation. Given this apparent variation/unpredictability, having another ini setting to control the behaviour is possibly not a bad idea?