Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73844 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66619 invoked from network); 29 Apr 2014 12:18:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2014 12:18:50 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.180 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.220.180 mail-vc0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:51825] helo=mail-vc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/31-57832-9A89F535 for ; Tue, 29 Apr 2014 08:18:50 -0400 Received: by mail-vc0-f180.google.com with SMTP id hq16so126948vcb.39 for ; Tue, 29 Apr 2014 05:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=abde46Z96z+EyviZ0mOgLlswzTRdVM7P72D3X70wiGY=; b=O6Kb/iKv+Aw80093M1XeDVNsupaTFc/oBrPLH89Wbmpj/HtxrxTnJmeipy+wb7aLlT /g3XKXzQDKwAjNylNVrv/oIgbTt/+/sl5xW7h/r6FNMInQo8gCLeyOVNf2U2dHLlGqtz C6SpI7trGG88ws1M1w5J17sUtw3AB5N3/zla9VxedzJ6R9vx9r1kEZ30TG7Y6vsnnQ88 PcNNJox/xoQFF9yTqYbmkQ+WcAOWkUvIHE9c/TLt3uh3AlI7K6QNG78ozQjy7NzI2MZI DXfEvYHpmL4AynRL3OH3Oo46QlphQwfVWa5F3WP5gkdQxSUtLHyv8omwnn9P69jhZurk NG6w== MIME-Version: 1.0 X-Received: by 10.52.139.6 with SMTP id qu6mr34193vdb.67.1398773927466; Tue, 29 Apr 2014 05:18:47 -0700 (PDT) Received: by 10.58.133.84 with HTTP; Tue, 29 Apr 2014 05:18:47 -0700 (PDT) In-Reply-To: References: <1005082480.406481.1398600039315.open-xchange@email.1und1.de> Date: Tue, 29 Apr 2014 20:18:47 +0800 Message-ID: To: Marco Pivetta Cc: Derick Rethans , "php@thekid.de" , PHP Internals List Content-Type: multipart/alternative; boundary=bcaec52d58331160d204f82d6f6d Subject: Re: [PHP-DEV] RFC: Catchable "call to a member function of a non-object" From: tjerk.meesters@gmail.com (Tjerk Meesters) --bcaec52d58331160d204f82d6f6d Content-Type: text/plain; charset=UTF-8 On Tue, Apr 29, 2014 at 6:50 PM, Marco Pivetta wrote: > 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. > It's not unthinkable that such a scenario may occur in a production system, even if the tests passed; when that happens you would now get a WSOD instead of being able to log/mail the error and show an appropriate error page. > This use case already makes it worth having this improvement in my opinion. > > Cheers, > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > -- -- Tjerk --bcaec52d58331160d204f82d6f6d--