Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69661 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46316 invoked from network); 18 Oct 2013 00:45:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2013 00:45:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=marco@m-s-d.eu; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=marco@m-s-d.eu; sender-id=unknown Received-SPF: error (pb1.pair.com: domain m-s-d.eu from 209.85.223.179 cause and error) X-PHP-List-Original-Sender: marco@m-s-d.eu X-Host-Fingerprint: 209.85.223.179 mail-ie0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:56010] helo=mail-ie0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/90-43111-19480625 for ; Thu, 17 Oct 2013 20:45:06 -0400 Received: by mail-ie0-f179.google.com with SMTP id aq17so5506885iec.10 for ; Thu, 17 Oct 2013 17:45:03 -0700 (PDT) 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:date :message-id:subject:from:to:cc:content-type; bh=EfbA4pRms3LT3/Iz/YPhCnp262bhNuHTWB3J2CFK5+U=; b=iK1LWLSf7q3QO1y6HHFvHjylFtri+SKTZi8+ay+Y7Ry2HlNTvTyEDsGSWHtPmDe/5A ujADYYIfQs5lIEqCDzwUVRUIGbFk5VV+gUl53yAECf/Y3rHuDQPI1Ng2SOrmpRls2lZf 2xXbDUyIAVcAml7Dk1ONlqldh4KmN9kOHRByP8UNxr6qcOPgliI0ZQAYSTTimwIpUhqu 3TESMDVF83M/SlC5OAUn+wsPyQwMQE/MfE3o1cAv3IBRdMGYjGei7CvbNL72KFMi9QcW 0jjkqvZ0h58ecgydsbG03M3Fab2Y+hrj+KoBgrPh/CDNVKtFcV8syJWxFEbR2yFTd20U wdWQ== X-Gm-Message-State: ALoCoQkLOzGGI1woM1q3hwhB9yAABvmaAKp1GelrD+NinxGmgfBOtfracCKjV8CQkKAv6KZHXXr3 MIME-Version: 1.0 X-Received: by 10.50.13.104 with SMTP id g8mr708914igc.30.1382057102853; Thu, 17 Oct 2013 17:45:02 -0700 (PDT) Received: by 10.64.240.8 with HTTP; Thu, 17 Oct 2013 17:45:02 -0700 (PDT) X-Originating-IP: [84.153.64.239] In-Reply-To: <526059D2.5080109@gmail.com> References: <525FC834.4060501@php.net> <1534105.bNC2os93J1@rofl> <525FDAC3.6060103@php.net> <52601C6A.6020408@php.net> <526059D2.5080109@gmail.com> Date: Fri, 18 Oct 2013 02:45:02 +0200 Message-ID: To: Rowan Collins Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Assertions From: marco@m-s-d.eu (Marco Schuster) On Thu, Oct 17, 2013 at 11:42 PM, Rowan Collins wrote: > > The current implementation allows you to define a callback, and to choose > whether assertions are fatal, which means that unit test frameworks and > fancy-output wrappers can intercept assertions *without affecting other > parts of the code*. The only way to do that with catch blocks would be to > have an exception which didn't descend from Exception. You could always throw a secondary exception from the catch-block. Marco