Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83274 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25690 invoked from network); 20 Feb 2015 08:29:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 08:29:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.217.174 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.217.174 mail-lb0-f174.google.com Received: from [209.85.217.174] ([209.85.217.174:34414] helo=mail-lb0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/86-25547-E50F6E45 for ; Fri, 20 Feb 2015 03:29:19 -0500 Received: by lbdu14 with SMTP id u14so4877513lbd.1 for ; Fri, 20 Feb 2015 00:29:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=ZZb5+W6qnxEo7PGLEmQpnfBHu1p8heU01vzATXoaLCk=; b=WPtJXbE1lVct+Y7NoPeoFpBwvoqBgoTkooLy9ss1ascu8EYfkTU1bxfo1ETRXS3tkZ 4MZeVS0TFPbcypcMmuLAfM0QEAJ8TZDq+MKrXwewcYUL0o0/J5448dqZwdEdy8lIF4zB 5RmEpBDRc95tdJvxS/Nyj1lxEJjomSjy55rymRDLGhQV23njQafGR7GqpoWDbhQoaxvB ik67jkRc6HWfzslvW0BPO41u33xXsW3BMBhshK1O2yxv9VXU2nLem34FT+ymcYqmvCPG XYI9nFnIrzyNpGe/uCZEN4qf5GQEhPqqfGjXjrXTFGcSMDSQqYyXgzV7DAUoYxXidUtf n0Qw== X-Gm-Message-State: ALoCoQkBs01zYGRhDoF1Di4wNe/VNbWnklPso2H6Dz6lp+lgszZ/jI0ihqGfe43Ejk8z9F4qXNuST5+8cyV31AxIGNl0/r8IOLG5vv9w/JCfw01ZtS3xeVNqfB9v4zgY40dcZSWLMKtHrdj3OGQD3OjRpaqF3OnAgQ== X-Received: by 10.152.29.68 with SMTP id i4mr167064lah.5.1424420955836; Fri, 20 Feb 2015 00:29:15 -0800 (PST) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPSA id b6sm5338160laa.14.2015.02.20.00.29.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Feb 2015 00:29:14 -0800 (PST) Received: by lbvn10 with SMTP id n10so4828119lbv.6 for ; Fri, 20 Feb 2015 00:29:13 -0800 (PST) X-Received: by 10.112.181.41 with SMTP id dt9mr7770526lbc.56.1424420953795; Fri, 20 Feb 2015 00:29:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.28.170 with HTTP; Fri, 20 Feb 2015 00:28:53 -0800 (PST) In-Reply-To: References: Date: Fri, 20 Feb 2015 16:28:53 +0800 Message-ID: To: Joe Watkins Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Expectations From: laruence@php.net (Xinchen Hui) Hey: On Thu, Feb 19, 2015 at 5:09 PM, Joe Watkins wrote: > Morning internals, > > The expectations RFC is now in voting phase: > https://wiki.php.net/rfc/expectations#vote sorry, the thread is too long to read.. I am not sure whether there was some similar opinion before.. I voted without custom exception, that is because. if all assertion exception is AssertException, then we can simply optimized them away while zend.assert is disabled.. like: try { foo(); bar(); assert(); } catch (AssertException $e) { //these statements can be optimized away. } but with custom exception.. try { sqllitefunc(); // no threw sqllitefunc1(); //no threw assert("", new SqlLiteException()); } catch (SqlliteException $e) { //we are not sure maybe sqllitefunc can throw SqliteException. // thus we can not optimized these statements ayway } thanks > > Cheers > Joe -- Xinchen Hui @Laruence http://www.laruence.com/