Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86235 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23592 invoked from network); 15 May 2015 17:12:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2015 17:12:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.171 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.213.171 mail-ig0-f171.google.com Received: from [209.85.213.171] ([209.85.213.171:33179] helo=mail-ig0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/44-02151-EE826555 for ; Fri, 15 May 2015 13:12:15 -0400 Received: by igbpi8 with SMTP id pi8so43725061igb.0 for ; Fri, 15 May 2015 10:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=84nkgm2MzjmU1p9tAwZ+K8mteMbE08PEOvS3WlCS5uk=; b=Kjv0Y/1291o0Zmjv9ufW3qzMWf1KSm1POFt0PxEdOHIZ0YWHH/9qMR0vZvCQu7JWx6 8PFZhMYRXFGdeyxrVTZ66QalmLZD26tGimeQscUcZMN8TIquyrGfvo5KFTBWlUAFbdML gz9rXd4FA17YR7eJF3goiprIJ50ZunQaEa/juA9/3Ai3aEAN1CJm7MsOQukC7wvI2EI6 hDKR9r2CcUrsHEE56LKrHD6VMFNJY4IxoOLKFQAlFGTekSJ4+hTGAV1UhAN1jTvIxF7D 8zq42n1UREKDhVMW/Wii9LFEC+jXpogqKDHaetmlzUVliww/sgm5T9+WyJJCxn/ygCH2 RCwg== X-Received: by 10.68.215.97 with SMTP id oh1mr20059602pbc.88.1431709931933; Fri, 15 May 2015 10:12:11 -0700 (PDT) Received: from [10.10.0.5] ([192.154.200.61]) by mx.google.com with ESMTPSA id fs16sm2427880pdb.12.2015.05.15.10.12.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 May 2015 10:12:10 -0700 (PDT) Content-Type: text/plain; charset=gb2312 Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (12D508) In-Reply-To: Date: Sat, 16 May 2015 01:12:07 +0800 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Dan Ackroyd Subject: Re: [PHP-DEV] Bug #69640 Unhandled EngineExceptions thrown from userland do not produce any output From: laruence@gmail.com (Xinchen Hui) Hey=A3=BA >> On May 16, 2015, at 12:35 AM, Dan Ackroyd wrote:= >>=20 >> On 15 May 2015 at 14:38, Xinchen Hui wrote: >> Hey: >>=20 >> as described in https://bugs.php.net/bug.php?id=3D69640&thanks=3D1 >>=20 >> instead of fixing it by exam the error type, I'd prefer to >> disallow initializing a engine exception from user land.. >=20 >=20 > How would that work when people want to write unit/integration tests > to test the behaviour of a module when an EngineException is thrown? >=20 > If you can't create a certain type of exception, it would mean that > some code is basically untestable...which seems bad. You can not creat it directly, but you can trigger the engine to throw one Thanks >=20 > cheers > Dan