Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75069 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82215 invoked from network); 25 Jun 2014 13:30:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2014 13:30:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.128.178 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.178 mail-ve0-f178.google.com Received: from [209.85.128.178] ([209.85.128.178:63201] helo=mail-ve0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/E2-55756-00FCAA35 for ; Wed, 25 Jun 2014 09:30:42 -0400 Received: by mail-ve0-f178.google.com with SMTP id oy12so1957073veb.23 for ; Wed, 25 Jun 2014 06:30:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mSsoRYDbfJXZ3ALttlb543A7NJTRtJzg7WiKoU8R6OQ=; b=NSi+I1eYddysZjUao/EosLtYncVwHZ/L6mFYJkN1drqme2WAiVAYDrXV4b8L5deFCL g2gZXQgvmRLtj231Xh6JMQmTLSJLSh2QldhhSDarnayqzXAGy2yTSnmYEzy+USDWSJbC TR2B+675Zt0Ah7mZJZZgObv51mUhUja7aukoOpLRM3YJza4FzfS5OntnvYnx2fOQ++eZ ZEwV9C6pCewB+9wpdOjPNIWr4wChLJooTGgZnUH5eBd1HdTWALEYGpdNgSBVe/Q0bPRt NymAYZVgM04H3SAbIQ44Oo/OxesAmYkZADnWZXySF2xfLImIGN4LSuWiTQpTs2AOMb1h f9pQ== X-Gm-Message-State: ALoCoQk+lvneIk/k9UrYXSYPmiV38UMD7qbt7zQ5fmj5+RQkgIw/AT5T9ODu8CDueXE7lRDSOYz0Ah/qkbNs19kP8uT4zNmYuf30DIcUa0+XWiAlEmtgZTxe2W2jl1bVB+U317MU1N+r MIME-Version: 1.0 X-Received: by 10.52.249.41 with SMTP id yr9mr1331421vdc.51.1403703038051; Wed, 25 Jun 2014 06:30:38 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Wed, 25 Jun 2014 06:30:37 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Jun 2014 17:30:37 +0400 Message-ID: To: Ferenc Kovacs Cc: PHP Internals , Dmitry Stogov Content-Type: multipart/alternative; boundary=089e01294a80f423b604fca91471 Subject: Re: why do we not set http 500 for errors when the display_error is enabled From: dmitry@zend.com (Dmitry Stogov) --089e01294a80f423b604fca91471 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable We can't set 500 response code if HTTP headers were already sent. We also don't set 500 response code if display_error is "on", because browsers won't show the actual page with error message (may be it was just IE6 or below and it's not a problem anymore). Thanks. Dmitry. On Wed, Jun 25, 2014 at 1:06 PM, Ferenc Kovacs wrote: > Hi, > > I've just got notification about https://bugs.php.net/bug.php?id=3D50921 > (because I was commenting on the past). I've checked why do we not set ht= tp > 500, and found this: http://lxr.php.net/xref/PHP_5_4/main/main.c#1154 > it was added with > http://git.php.net/?p=3Dphp-src.git;a=3Dcommit;h=3D8039433291bd4fa36c897e= 93047d1ebd538dadbb > for fixing https://bugs.php.net/bug.php?id=3D42722 > I'm a little bit confused how is that change fixing the originaly reporte= d > problem (fatal errors doesn't show up in the output even though that > display_errors is enabled and error_reporting is set to E_ALL). > I don't think that the current behavior is correct, could somebody tell m= e > what did I missed? > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu > --089e01294a80f423b604fca91471--