Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90119 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43265 invoked from network); 5 Jan 2016 18:09:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2016 18:09:36 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wm0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:38789] helo=mail-wm0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/CB-12097-FD60C865 for ; Tue, 05 Jan 2016 13:09:36 -0500 Received: by mail-wm0-f47.google.com with SMTP id b14so41588476wmb.1 for ; Tue, 05 Jan 2016 10:09:35 -0800 (PST) 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=ePBIfQvVikIUG7VLRDgG68rxyZSLkDH7WNsaxoRDcUc=; b=O4l17OLeRvpyhXTQcZitiLepZ4846zLVAfoJdGMFkjCCHPnsTHq2INId2+WUacRvzP rYL9F4Z2UJdRObly7F6QDiYTjH1KOtq/b4kdxxbK2QzSpFHRYeioNW3rThC2reOcp3RS ak+EVqdaVNBe9/vmTAg9B5XJiLy/A05lBDMEbS/wltW15zxkF+zUDRkbXW7arNlH0qi0 q7ZMXiEuBEuJwHP5x8rPXJw2Z/1AMCOIHAOXyfE6gQkkPmgFbyeWEJQ5izPqm6uBDDgp dyT44yqji63Eiz8QG7OwacRHU2WDLdLmIcS0E3/JU0vKQEeR5d0vf3FVfwAbxZTlPYoy bnrQ== MIME-Version: 1.0 X-Received: by 10.194.94.138 with SMTP id dc10mr15473740wjb.37.1452017372845; Tue, 05 Jan 2016 10:09:32 -0800 (PST) Received: by 10.27.86.202 with HTTP; Tue, 5 Jan 2016 10:09:32 -0800 (PST) In-Reply-To: References: <4F.0A.12097.24FFB865@pb1.pair.com> Date: Tue, 5 Jan 2016 19:09:32 +0100 Message-ID: To: Sara Golemon Cc: Andrea Faulds , PHP internals Content-Type: multipart/alternative; boundary=047d7bb03d4eb7601605289a239f Subject: Re: [PHP-DEV] Deprecation of the Error Control Operator (@ symbol) From: tyra3l@gmail.com (Ferenc Kovacs) --047d7bb03d4eb7601605289a239f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jan 5, 2016 at 6:53 PM, Sara Golemon wrote: > On Tue, Jan 5, 2016 at 9:37 AM, Andrea Faulds wrote: > >> How about a global "disable error suppression" setting? That way a > >> project lead could enforce it for their codebase (and guarantee that > >> devs "aren't lazy"), but PHP doesn't lose its pragmatism? > > > > I don't think that would work out too well. Remember that many projects > have > > error handles which convert all errors to exceptions: if you disable @ = in > > those projects, wouldn't their code break? > > > Nope. > Supressed errors already reach custom error handlers: > https://3v4l.org/TG8aA > sure and most projects check the error_reporting() level against the $errno like in the manual: if (!(error_reporting() & $errno)) { // This error code is not included in error_reporting return; } @ changes the error_reporting() level for that particular call, so those custom error handler won't throw exceptions for the suppressed errors but when you remove/nop @ their code would throwing stuff left and right. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7bb03d4eb7601605289a239f--