Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66720 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4985 invoked from network); 20 Mar 2013 16:49:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2013 16:49:25 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.177 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.177 mail-ie0-f177.google.com Received: from [209.85.223.177] ([209.85.223.177:33541] helo=mail-ie0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/89-46127-498E9415 for ; Wed, 20 Mar 2013 11:49:25 -0500 Received: by mail-ie0-f177.google.com with SMTP id 16so2319032iea.22 for ; Wed, 20 Mar 2013 09:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=n01/Ns/E+7v9KdTENhEplQMNenqVQIMQ3JMr6RMMOms=; b=W4aF77yceT7zYQeC/D99NfYU8oxiTxI6IhvkPGwt0DHsG4lR5BuA86mccwjeDB2Rsb 5BN2gE/bwfJYWoflOt5HN1zE1+ZhmOwn08XC2DFBhBPFBR2GrkLUIzsNNHI5gxR+XCg2 SVcA6VcxYYbaRQsYWAO1nTm/y7/xgoK5fUaIJooxx8ISQ+1IEJWCGskWkTC12gVhzjQ2 tgGTSadads1udniOSpXrIFX7mMqp213ycLJ82UzPLbwXC4BLF8V4C6B35OLYO01g+0fE gRLIGQ/T7Ah7uhuCx5Ml2t1rEgKivD2UVoEpRd6m4/rkmPh32Qh8SJNh96KOQzNSWcRX wxPA== MIME-Version: 1.0 X-Received: by 10.50.212.105 with SMTP id nj9mr2092538igc.17.1363798162171; Wed, 20 Mar 2013 09:49:22 -0700 (PDT) Received: by 10.50.114.137 with HTTP; Wed, 20 Mar 2013 09:49:22 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Mar 2013 17:49:22 +0100 Message-ID: To: Richard Bradley Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=14dae93404a300889c04d85e0126 Subject: Re: [PHP-DEV] E_RECOVERABLE_ERROR for "Call to a member function on a non-object" From: tyra3l@gmail.com (Ferenc Kovacs) --14dae93404a300889c04d85e0126 Content-Type: text/plain; charset=UTF-8 > > > 2. Would anyone object to this change? For example on > backwards-compatibility grounds? > > 2, yes > > Could you be more specific? > I was hoping to head off some of the objections in this email thread, or > at least to avoid coding up a patch if it is certain to be rejected. > Could you elaborate on what the objections might be, and what measures I > could put in place to overcome them? > I can't talk for the others, but my experience on the list tells me that this isn't an easy problem, otherwise it would be solved already, and some of the voters are conservative when comes to changing the status quo, so personally I would be surprised if nobody would object such a change, but this shouldn't hold you back, the important thing is to have the majority of the votes, you can't satisfy everybody. your best bet is to have a clear and unbiased RFC and a nice patch. > > > > 3. If I put the effort in to create the RFC and a patch, would > it be likely to be accepted? > > 3, depends on the patch > > Of course. Could you be more specific? Are there any particular issues the > patch would need to address to be accepted? Anyone in particular I need to > convince to get this merged in? Or should I just do my best and trust in > the RFC voting system? > the latter. > > > > 4. Has anyone attempted this change before and had it rejected, > or given up? > > 4, yes, at least there were a couple of discussions in general about > removing/converting some of the fatals to recoverable fatals > > Thanks: do you have any pointers for where I can find this? > I get no relevant hits on wiki.php.net or on the "internals" list search > at marc.info for search terms like "E_RECOVERABLE_ERROR" or "Call to a > member function on a non-object". > there were some good discussion in the http://grokbase.com/t/php/php-internals/128335vjrj/error-handling-brainstormingthread (see for example the reply from Nikita where he also mentioned the cases when the fatal isn't really a fatal, just hard to recover from sanely). some other related discussion happened in http://www.mail-archive.com/internals@lists.php.net/msg60652.html and the closest thread that I can found would be http://grokbase.com/t/php/php-internals/122nywvc5f/exceptions-for-method-on-non-object-rather-than-fatal-desired-feature --14dae93404a300889c04d85e0126--