Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90123 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50815 invoked from network); 5 Jan 2016 18:22:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2016 18:22:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.215.47 mail-lf0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:34135] helo=mail-lf0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/5D-12097-CF90C865 for ; Tue, 05 Jan 2016 13:22:53 -0500 Received: by mail-lf0-f47.google.com with SMTP id y184so299133780lfc.1 for ; Tue, 05 Jan 2016 10:22:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=XSoQDwWaNN1T+hdjqEyxukgweSr9W7od3oaKB6hIAa0=; b=y3eqDBb586CmFDzQTOZJA/zeO0DON5igaSIGY74v6H8davBA82PCgwxuCDCzVe8TWw fv/ryIx4K3MI1tpIy9c+ax4SoHq7ZPLIdrJu4JgDjCV9wPgb2SUGmZveDfcxbSElpPFq ZnJfRYt3XbBDdNefTGE3T09GCJOhLEnPgNvrumAcVO/rv6cgStKBCgZCR4t1hJaOVLCp wALts0Q0jzFcrC94GZMcKxY3VzlhVW0PPogWwiEMv4dsQFwo1DA1kf/vYNlb5N6nCe1o Kf9QFBd7rVk3KfZ3liSWcH7GLFwNLxJyTG4388tfluwHHZDzy1x1QddE43yuaR24IxqF l2Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=XSoQDwWaNN1T+hdjqEyxukgweSr9W7od3oaKB6hIAa0=; b=jIxK6ax73uOvwNbQxp+I9WFhKAb1Fi7C73eJrfnxsJtMnzG5JjwgNxZO3fx56+PpmF s1iLrpP+oETWz+SVRL2ecF5UPNYd9lwZdkT7nyBgqbJc0JxCXUaNcxow10NLSBPqkG+a Eb519CXZQDoroYZww70LmyM+qdhZL2Nfe6wSkFw9/Q80b+xtcUTnl0AoTZVU/6hq7tiJ K1xE5x0Y6etr4WsfhxckI5klTf67ZsxQrgFUjewpl3MBCrmthJBQOnqnTc9V5RWcMnRl vNgsP9r4Df2b5sn75Tuqapw2T2xhAHEJob/z1lj48l2eWT52zag1/TqciayaUZqytowN N8bg== X-Gm-Message-State: ALoCoQmfJYdo2HDnUxQUR5raymfvmM1BAyMki8Lj1N8nHn76pENKYMMxAHYfRDX1JGIKSQsk8rsmq0X59TfX1fuH9C5bv2a7Aw== MIME-Version: 1.0 X-Received: by 10.25.134.130 with SMTP id i124mr25037453lfd.63.1452018169821; Tue, 05 Jan 2016 10:22:49 -0800 (PST) Sender: php@golemon.com Received: by 10.112.37.44 with HTTP; Tue, 5 Jan 2016 10:22:49 -0800 (PST) X-Originating-IP: [107.198.91.68] In-Reply-To: References: <4F.0A.12097.24FFB865@pb1.pair.com> Date: Tue, 5 Jan 2016 10:22:49 -0800 X-Google-Sender-Auth: YVXC38dt_9fi8zvUzTubwShrqgk Message-ID: To: Ferenc Kovacs Cc: Andrea Faulds , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Deprecation of the Error Control Operator (@ symbol) From: pollita@php.net (Sara Golemon) On Tue, Jan 5, 2016 at 10:09 AM, Ferenc Kovacs wrote: >> > 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. > Today I learned... Okay, def a problem (for a specific set of circumstances). And one which makes me more amenable to Ze'ev declare() suggestion (on a per-request bases, not per-file) as anyone modifying a project's codebase for testing can also modify it to suppress those exceptions as needed and/or just not enable the custom error handler. -Sara