Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73842 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59662 invoked from network); 29 Apr 2014 10:50:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2014 10:50:41 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.54 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.192.54 mail-qg0-f54.google.com Received: from [209.85.192.54] ([209.85.192.54:44887] helo=mail-qg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/10-57832-0048F535 for ; Tue, 29 Apr 2014 06:50:40 -0400 Received: by mail-qg0-f54.google.com with SMTP id q107so14994qgd.27 for ; Tue, 29 Apr 2014 03:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=hMszm62mf0xAKS3Bq5urKfseGHmyh+A0Jin/nOtKGNY=; b=go+nn/MdF8F/KWu72wMZUahi1Ws4o7uaZo10HRXi1q/fzLMHc0hb5f8I+pXsFaYC/V ZhVNVgWymRGLAHzTyDiPvMUsaXSoeQn2VZE3LRoUHAM1hH6ELfwhYpqV+/eDiPEdwDHE lzchgIVXElJRp4hKNftKrgeTsz01F20NwLAaQUi1RzooVaet0NkHEOB+vazWyIPG5Rb/ QtiTjBct0M7Lqx8UBIB+HJ/rWwTrcsp1iQmwL65s1Wcutm+59ny+bJypcUkfm6yZBAvV GJ4vFLsbqCKN8dAQY0cMvit7SlgWG2x/Hd1iJrWGiaQEvxvokswqj4crkwVaS1ikhwEd dx1Q== X-Received: by 10.140.30.161 with SMTP id d30mr38541878qgd.62.1398768637575; Tue, 29 Apr 2014 03:50:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.21.37 with HTTP; Tue, 29 Apr 2014 03:50:17 -0700 (PDT) In-Reply-To: References: <1005082480.406481.1398600039315.open-xchange@email.1und1.de> Date: Tue, 29 Apr 2014 12:50:17 +0200 Message-ID: To: Derick Rethans Cc: "php@thekid.de" , PHP Internals List Content-Type: multipart/alternative; boundary=001a113a5c16c40b1604f82c3341 Subject: Re: [PHP-DEV] RFC: Catchable "call to a member function of a non-object" From: ocramius@gmail.com (Marco Pivetta) --001a113a5c16c40b1604f82c3341 Content-Type: text/plain; charset=UTF-8 On 29 April 2014 10:26, Derick Rethans wrote: > Programming mistakes should not be hidden by error > Of course, but what about having a PHPUnit tests that hard-fail due to a "PHP Fatal error: Call to a member function foo() on a non-object in ..."? Just being able to have a handler that catches it as an error is pretty ok, and it surely allows me to see if there are other failures in a huge test suite without having to come up with some crazy code just to run the tests one by one. This use case already makes it worth having this improvement in my opinion. Cheers, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a113a5c16c40b1604f82c3341--