Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104197 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10305 invoked from network); 5 Feb 2019 20:14:44 -0000 Received: from unknown (HELO tbjjbihbhebb.turbo-smtp.net) (199.187.174.11) by pb1.pair.com with SMTP; 5 Feb 2019 20:14:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.net; s=turbo-smtp; x=1549990554; h=DomainKey-Signature:Received: Received:MIME-Version:References:In-Reply-To:From:Date: Message-ID:Subject:To:Cc:Content-Type; bh=ZboQ+tsZ54d7lIGrLZOd5C G/CVmw3OCqCs+qvX3tkGI=; b=MnqvH80vqHDdl9tHEDE1EADbC9ybi5xUS2dHCr ko2owM8I5rs5j7FzIAilXaKkiWOBU0rNeeC55UwuGXGHnvpl++bBgrY4vrbBYl4J hSX4LybcGSk7qzx5Ct8Nmoa/093j1f7GFTXsOGugFIej9SMQ9Zq0gOXVKiR3VDuk z/Kgk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=turbo-smtp; d=php.net; h=Received:Received:X-TurboSMTP-Tracking:X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version:References:In-Reply-To:From:Date:X-Gmail-Original-Message-Id:Message-ID:Subject:To:Cc:Content-Type; b=x3ojf6LTNgK7+KdtEomboTvXRwrc2Su7eXNmcK8nBYSd1/0TlsPyELRI4zJF8H VOchkFdIZoA8WOj2ecJB0BQZhuGkpviLZ6BHUJUpS5NJn0nLABGD7TldHLhc+fXP jsoQaQkDYrHi0FDC1bDl+zxVYwCb7hMYDdSB4tVRYo7+0=; Received: (qmail 4375 invoked from network); 5 Feb 2019 16:55:54 -0000 Received: X-TurboSMTP-Tracking: 4833315489 X-Gm-Message-State: AHQUAuaLLlK0gLk3KDeJDhNIRmu2Cl2FSILcX1pRvPbp9WK4wZ3kJA7k uJRnv4wWyZh1G6/kOcKcvdOCJyLUm7iltNNEK6s= X-Google-Smtp-Source: AHgI3Ib+S0+RYD+GNC01GdOXz0uPTDtxTpcP5wchLZAzZS2bHclIhmBaW1UBZAvHHI4zBJOcpXMlOFn+tGvU1WDMx0g= X-Received: by 2002:a0c:c389:: with SMTP id o9mr4531820qvi.90.1549385753687; Tue, 05 Feb 2019 08:55:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 5 Feb 2019 18:55:38 +0200 X-Gmail-Original-Message-Id: Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000077fbcf0581287bb9" Subject: Re: [PHP-DEV] Re: Don't silence fatal errors From: zeev@php.net (Zeev Suraski) --00000000000077fbcf0581287bb9 Content-Type: text/plain; charset="UTF-8" On Tue, Feb 5, 2019 at 5:17 PM Nikita Popov wrote: > On Mon, Nov 26, 2018 at 10:42 PM Nikita Popov > wrote: > > > I'd like to move forward with this change. I think the overall reception > here has been positive, although in the discussion some other possibilities > that avoid/reduce the BC aspect have been discussed. I think now that we > have a PHP 8 branch, it would make sense to apply this as-is. The BC break > is quite minor (compared to the other changes in PHP 8) and I think this is > the cleanest way to solve the problem, as it only changes the list of > silences errors, without introducing any new error handling concepts or > mechanisms. I don't think that other changes that may or may not make it into PHP 8 should influence our decision - BC breaks accumulate and the more you have of them, the more difficult it is to migrate. I'm also present unaware of anything we already decided to 'break' in PHP 8 as of now (with the exception of the removal of deprecated 7.x features). That said - I think we all agree the BC breakage scope is small - but at the same time, it may be quite fatal for those that are affected. Those who have display_errors on (which is both horrible for production and at the same time fairly popular) are risking exposing sensitive data that beforehand, they were safely and explicitly hiding using @. Is there any reason *not* to do it in such a way that provides a gentler migration path? Introduce a new error level that would be a part of E_ALL in 7.4, but outside of E_ALL in 8.0 - that would govern whether fatal errors are silenced or not. Zeev --00000000000077fbcf0581287bb9--