Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87665 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57478 invoked from network); 6 Aug 2015 08:52:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2015 08:52:10 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.163 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.163 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.163] ([81.169.146.163:18025] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/84-22467-83023C55 for ; Thu, 06 Aug 2015 04:52:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1438851126; l=2062; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=2fBrg+KzUQ/FjcWtyK3dULaaWyZG0pkdIyzpYbl1LFM=; b=qVEwd0NQLH6U/9cZrm5MuNWTu2LPhvQ5vtO8h38wh2c5K7CmRExoKocx9ZejQgwVBdC HS153njRaFdwcNOJh8KAhF6+8F7gWCqKhAS+NLUIVWNWrZsbaNihUvnVaKD5YU5nuEoxS Fw07h/NzQbDK1AxST5YdAuQi9QSE2/DbUXI= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoNNBqD/sK4= X-RZG-CLASS-ID: mo00 Received: from mail-wi0-f170.google.com ([209.85.212.170]) by smtp.strato.de (RZmta 37.8 AUTH) with ESMTPSA id R0511br768q60XL (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Thu, 6 Aug 2015 10:52:06 +0200 (CEST) Received: by wicgj17 with SMTP id gj17so13224338wic.1 for ; Thu, 06 Aug 2015 01:52:06 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.20.71 with SMTP id l7mr4372450wie.32.1438851126006; Thu, 06 Aug 2015 01:52:06 -0700 (PDT) Received: by 10.27.204.197 with HTTP; Thu, 6 Aug 2015 01:52:05 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 Aug 2015 10:52:05 +0200 Message-ID: To: Leigh Cc: Scott Arciszewski , PHP Internals Content-Type: multipart/alternative; boundary=bcaec53f2e27401a74051ca0a220 Subject: Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7 From: me@kelunik.com (Niklas Keller) --bcaec53f2e27401a74051ca0a220 Content-Type: text/plain; charset=UTF-8 Scott, could you setup a RFC with a vote, so we can decide? Nikita proposed those two options: 1) Error is to be used in cases where an error is attributable to > programmer mistake. > 2) Error signifies a failure condition that the programmer is discouraged > (and unlikely to want) to handle. It should only be dealt with at the top > level. I'm in favor of 2), I would phrase it like: Error should be used if a repetitive call with the same input parameters would _permanently_ result in a failure, otherwise Exception. Regards, Niklas --bcaec53f2e27401a74051ca0a220--