Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87284 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41285 invoked from network); 25 Jul 2015 00:43:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2015 00:43:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.171 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.171 mail-pd0-f171.google.com Received: from [209.85.192.171] ([209.85.192.171:34703] helo=mail-pd0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/84-10459-0CBD2B55 for ; Fri, 24 Jul 2015 20:43:44 -0400 Received: by pdbbh15 with SMTP id bh15so20825925pdb.1 for ; Fri, 24 Jul 2015 17:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=rsg8KXUsLPKPPZMsBdVXbx21lt/BnzftPPwsTH4XjCg=; b=XTpzql2wzTR6g1iK9mSKLGjrJKSVyKpux/DjwjvzCnhqX5UKF1GwYDIanLbVcIkQGJ AtU8Wf/tkEyRnpMb4hyXVqwiimsw1uo6Galy0/SdmbdrcKh5WZHpR5fECTC2hl4y1k4/ xEr2K0pEDAcffMQo8MxH8sDvG5A+1lxjr44nDNlm5SI09VlPOHK6yxGIN5TvsMEtBvq4 zbuoXV9kuGRGt62/Yh7iqCJ4LcPeV29CWYkgIGwh+DbHDM+cW/CzQ7moCDT0MQkYXo+K YaVbn1q5h5HfSbbupbXoeKYxnhAQWy/N+/w8vHIaUL+I68K9MsF9TQILStftUfRozDEW Hcrg== X-Received: by 10.70.1.102 with SMTP id 6mr36999795pdl.32.1437785021730; Fri, 24 Jul 2015 17:43:41 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by smtp.gmail.com with ESMTPSA id k5sm16655612pda.34.2015.07.24.17.43.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 17:43:41 -0700 (PDT) To: Scott Arciszewski , Yasuo Ohgaki References: Cc: Sammy Kaye Powers , PHP Internals Message-ID: <55B2DBB8.4050604@gmail.com> Date: Fri, 24 Jul 2015 17:43:36 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Core functions throwing exceptions in PHP7 From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > 1. E_WARNING - fail open, possibly cause security problems for the user > 2. E_ERROR - fail closed, but make graceful handling a pain in the neck Can't you just catch Error just as you would catch an Exception? Of course, it's less clean than specialized exception but I don't see why it's not an option. -- Stas Malyshev smalyshev@gmail.com