Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75716 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57139 invoked from network); 20 Jul 2014 15:43:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2014 15:43:21 -0000 Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.43 as permitted sender) X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.192.43 mail-qg0-f43.google.com Received: from [209.85.192.43] ([209.85.192.43:42261] helo=mail-qg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/71-48607-893EBC35 for ; Sun, 20 Jul 2014 11:43:20 -0400 Received: by mail-qg0-f43.google.com with SMTP id a108so4726758qge.30 for ; Sun, 20 Jul 2014 08:43:18 -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=4krx2teB5cUs9a9uegIMe6F9YxzMqQQgAsjpR1Ibgzo=; b=FIgo4jn64US0Rqc7AGZ3yj443w/3oMbO8sarjRY+rdHJnmDUu5lWX8NAduwecEOh0K ek8Gwa5D5PrMUpTyr+4Dv2AlV2dqpJ9Lxn81Sh6M212LGem6JryUASBoMH3jpmd/XJil Nu9G3utUTm7yXsFCUZtRNu704qCrG+Vn8J5wLjjrwhbrLWJMQY1NgAu/Zp2rXkGhsocG fZUkrD3Pu68U4lb4Mx1Y4E7QoZh41MY2nTASK/63nrPspuCcEEggxr5/xCw/iacug7yf B8NzOibDb5CXQxAFhjW9fg2qcOmLLkiXibRSauvAAqjJuuQ/NNnUuaOnjxT//T9PTPFr /PWA== X-Received: by 10.224.65.73 with SMTP id h9mr31911586qai.83.1405870998551; Sun, 20 Jul 2014 08:43:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.45.229 with HTTP; Sun, 20 Jul 2014 08:42:38 -0700 (PDT) In-Reply-To: <801311915.137460.1404038401570.open-xchange@oxbsltgw54.schlund.de> References: <801311915.137460.1404038401570.open-xchange@oxbsltgw54.schlund.de> Date: Sun, 20 Jul 2014 16:42:38 +0100 Message-ID: To: Timm Friebe Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c2ba5278056104fea1d933 Subject: Re: [PHP-DEV] [VOTE] RFC: Catchable "call to a member function of a non-object" From: petercowburn@gmail.com (Peter Cowburn) --001a11c2ba5278056104fea1d933 Content-Type: text/plain; charset=UTF-8 On 29 June 2014 11:40, Timm Friebe wrote: > Dear all, > > a couple of weeks ago, I proposed a change to the handling of the situation > where methods are called on non-objects. Instead of an E_ERROR, the engine > would > raise an E_RECOVERABLE_ERROR, and enable framework and library authors to > handle > this. > > An intriguing usecase from my POV is to make use of this in tools like > PHPUnit; > instead of just printing a fatal error in the middle of a test run and > exiting, > the tools can decide to raise an exception and display the very much more > helpful backtrace. No third-party PHP extensions needed for this, just a > simple > set_error_handler() call [1]. > > I've verified various places like phpdbg and added a bunch of tests and am > glad > to extend that should anyone come up with a situation he/she feel this > would > behave in an unstable manner; athough this is realized in a somewhat > similar > manner to type hint mismatches, which have proven to be quite stable. > > Anyhow, I'd now like to see where we'd come out at and would kindly ask > you to > vote for or against inclusion of this feature: > > https://wiki.php.net/rfc/catchable-call-to-member-of-non-object#vote Any plans to close the voting, Timm? > > > Thanks in advance! > > -Timm > > 1: > > https://wiki.php.net/rfc/catchable-call-to-member-of-non-object#exampleexceptions > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c2ba5278056104fea1d933--