Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86234 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20260 invoked from network); 15 May 2015 16:35:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2015 16:35:50 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.213.43 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.213.43 mail-yh0-f43.google.com Received: from [209.85.213.43] ([209.85.213.43:33639] helo=mail-yh0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/C3-02151-36026555 for ; Fri, 15 May 2015 12:35:49 -0400 Received: by yhcb70 with SMTP id b70so34103213yhc.0 for ; Fri, 15 May 2015 09:35:44 -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=ZEUxxAwZOrbTMFIhdkVU6Q+wP9hC1+vkO60lzJbK6Yc=; b=JsPxb+Z17a469dfabM3ffZbloGopwlPflYouUAGTX4v8Dj3gOSOe2/7qIuJWA+tvb/ ISBtyxc7URmF7ccTTf4BgztQpxtk5OAdZ9vGNMKD9wCAeR5MyA87sHVGnRBf6/OJYiJ2 xHmtLZgLXXs8D/6yrG+TglVBO12w1UWoPrRyHeGJT65tp5OCKFwA1Eit6/n2ZrFBm+pS 1Ji66cgOObLtLlv9Dh0FqhOz9NvKNrtHms0PrU/PgQYYTyBDbmxco3i/IBqMuyBmg6Dp NBWsCr/VFwA0CVrLML2lsozrHDXsoz0M3f8V+2Qe1b5qjsgLaEnjJ19KbQ/Vg3TdIUSS MtoA== X-Gm-Message-State: ALoCoQnGq4/zCRb5oXhlzhPfeH/E8Wmdc9Ytz72n8kY+bkVU6duCG1SVc/z5MJgwIwrNBvaLoU2+ MIME-Version: 1.0 X-Received: by 10.236.31.6 with SMTP id l6mr10485138yha.150.1431707744072; Fri, 15 May 2015 09:35:44 -0700 (PDT) Received: by 10.129.108.75 with HTTP; Fri, 15 May 2015 09:35:44 -0700 (PDT) X-Originating-IP: [89.242.229.174] In-Reply-To: References: Date: Fri, 15 May 2015 16:35:44 +0000 Message-ID: To: Xinchen Hui Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Bug #69640 Unhandled EngineExceptions thrown from userland do not produce any output From: danack@basereality.com (Dan Ackroyd) On 15 May 2015 at 14:38, Xinchen Hui wrote: > Hey: > > as described in https://bugs.php.net/bug.php?id=69640&thanks=1 > > instead of fixing it by exam the error type, I'd prefer to > disallow initializing a engine exception from user land.. How would that work when people want to write unit/integration tests to test the behaviour of a module when an EngineException is thrown? If you can't create a certain type of exception, it would mean that some code is basically untestable...which seems bad. cheers Dan