Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90039 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59987 invoked from network); 5 Jan 2016 02:18:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2016 02:18:08 -0000 X-Host-Fingerprint: 2.218.134.247 unknown Received: from [2.218.134.247] ([2.218.134.247:28809] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/19-07292-FD72B865 for ; Mon, 04 Jan 2016 21:18:08 -0500 Message-ID: To: internals@lists.php.net References: <568599AA.4090209@gmail.com> Date: Tue, 5 Jan 2016 02:18:04 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 2.218.134.247 Subject: Re: [PHP-DEV] Deprecation of the Error Control Operator (@ symbol) From: ajf@ajf.me (Andrea Faulds) Hi Bishop, Bishop Bettini wrote: > I am -1 on removing @ for 7.x series. But, I would be in favor of all > changes that remove unnecessary error messages or add functionality to > better work with error messages. In my mind, those are requisite steps > before removing @. I agree here. It'd be nice if we could somehow catch errors in the same way we can with exception, but we don't have this just now. Problem is a I can't think of a non-messy way to make this work, at least not without going through every PHP extension and adding an identifier for different errors. One improvement, though, might be an @ equivalent that only silences a certain level of error. It's still too broad, but it's nonetheless better than the silence-all we have now. Thanks. -- Andrea Faulds https://ajf.me/