Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86255 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54607 invoked from network); 16 May 2015 18:47:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2015 18:47:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.213.48 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.213.48 mail-yh0-f48.google.com Received: from [209.85.213.48] ([209.85.213.48:36015] helo=mail-yh0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/A9-14891-BD097555 for ; Sat, 16 May 2015 14:47:56 -0400 Received: by yhrr66 with SMTP id r66so41019924yhr.3 for ; Sat, 16 May 2015 11:47:53 -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=hzVf6R7l0/4/r+IY1u2Zfx048+jQ3XlA6OoNFUlIkKM=; b=JzCUFJ8WMFSBsP4+tiVGWM2k+XAI/ROkR1uh66Bj43peF0pimQmfTfRegx1UC1Q2W3 rkML4Hhfig8MCpBwImacemcwJrUms2PShTYJbejDxSEkXaXJjd/WLKsWpB6ZLh+FZaVF 3LfWyJVgp6KVVFpRzKQykf1Ey15Nb1JYwOPwrpWiHE9RO0eHmgSqZjX8zFVSChUksVd7 bdEhuqzMzUt2kmRvbDTLb5iB6RnvthhT1xWReWLTAz49kSQXDrH/Jfl8faqST4KfZGyR FsvbhMvKZ+vUjjiMSGebLTjHAYqpgoxPqThjKhHYiS7J/wICayWu58zdPhuwPjQsPSmy o/Ww== X-Gm-Message-State: ALoCoQnUQrPGPGxreUgTqdx2R0aelvDi4g9nuwyRp9bQwOfMZtWZrQivghkXf+jn9YHZYPb4ZKoV MIME-Version: 1.0 X-Received: by 10.170.94.2 with SMTP id l2mr17526169yka.45.1431802073027; Sat, 16 May 2015 11:47:53 -0700 (PDT) Received: by 10.129.108.75 with HTTP; Sat, 16 May 2015 11:47:52 -0700 (PDT) X-Originating-IP: [89.242.229.174] In-Reply-To: References: Date: Sat, 16 May 2015 18:47:52 +0000 Message-ID: To: Ryan Pallas Cc: Xinchen Hui , 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 16 May 2015 at 17:00, Ryan Pallas wrote: > Why do you want to test parse exceptions? Lint your code before you run it > and you won't have any. ... maybe I'm missing something > obvious, Yeah, there's been a misunderstanding. I'm not talking about wanting to test whether my code generates parse exceptions, I'm talking about testing whether the code that catches parse exceptions behaves correctly. e.g. Wordpress should be catching ParseExceptions (and other EngineExceptions) generated by plugins and reporting those plugins as being problematic. The code that handles those exceptions needs to tested that it behaves correctly, which requires the appropriate exception being generated when the test is run. Although people could use a nasty hack such as `eval("