Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75072 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87976 invoked from network); 25 Jun 2014 14:32:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2014 14:32:36 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:51266] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/C3-55756-28DDAA35 for ; Wed, 25 Jun 2014 10:32:35 -0400 Received: by mail-wi0-f179.google.com with SMTP id cc10so2658191wib.0 for ; Wed, 25 Jun 2014 07:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=hnISzdvpeRg58KUqXUNw9BgbZSdWzQng8Mkn06aN5DM=; b=m0dDW/mVmZ41m+M7YQj0+MMo9J40rKgJP0sdm/ubjpzrs3SWuobbEYLJ8u6wUTbU/e NvIbL31DZ2oOnoIj2wWHA7fH03KZ8hu2xWyFB3lFlEppNnIaegDsuZQtQEp8VtAwv765 etb5blKqaV64TF4dV4U/mwmBtE/2XRyYTDA7RX0moceuHOHk/n1FXeViaLE+/DBG6Wsz eU//xWoMBVUjQyiydCmnaS6u5jOJDJUhIwlceu/req6jL5GL0IZO7/vpEondg4SLlXhb aymdcY5xaQjZGvszpiyVMuvAW0iA/BvlA4cQdcq1krA3s4Z+qs4dr8+GX7oIkZS296M7 Goww== X-Received: by 10.194.89.40 with SMTP id bl8mr10127605wjb.90.1403706748924; Wed, 25 Jun 2014 07:32:28 -0700 (PDT) Received: from [192.168.0.139] ([62.189.198.114]) by mx.google.com with ESMTPSA id gi7sm54396353wib.1.2014.06.25.07.32.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Jun 2014 07:32:28 -0700 (PDT) Message-ID: <53AADD67.309@gmail.com> Date: Wed, 25 Jun 2014 15:32:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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: rowan.collins@gmail.com (Rowan Collins) 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. :( Regards, -- Rowan Collins [IMSoP]