Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76191 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2293 invoked from network); 27 Jul 2014 08:56:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2014 08:56:03 -0000 Authentication-Results: pb1.pair.com header.from=php@thekid.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@thekid.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thekid.de from 212.227.126.187 cause and error) X-PHP-List-Original-Sender: php@thekid.de X-Host-Fingerprint: 212.227.126.187 mout.kundenserver.de Received: from [212.227.126.187] ([212.227.126.187:61254] helo=mout.kundenserver.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/7F-22380-2AEB4D35 for ; Sun, 27 Jul 2014 04:56:03 -0400 Received: from oxbaltgw02.schlund.de (oxbaltgw02.schlund.de [172.19.246.8]) by mrelayeu.kundenserver.de (node=mreue003) with ESMTP (Nemesis) id 0LpRkv-1WWkEt02In-00fD4t; Sun, 27 Jul 2014 10:56:06 +0200 Date: Sun, 27 Jul 2014 10:56:05 +0200 (CEST) Reply-To: Timm Friebe To: Yasuo Ohgaki Cc: "internals@lists.php.net" Message-ID: <1290246035.235053.1406451366002.open-xchange@oxbaltgw02.schlund.de> In-Reply-To: References: <801311915.137460.1404038401570.open-xchange@oxbsltgw54.schlund.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.4.2-Rev29 X-Provags-ID: V02:K0:daZ2sLQQRUpgUpl8NlSbssNEn3GlT1EhvYz7URLtPDF 1cRSRQqEaekARvI3i9sXKZ+kS+B1WHgREyRvBOUKHn+BvZ4Sux 5VbQRZqFySAwRFuScMJcL3hjNUfr2lzsruIY0y3XW9YbkKPUhH DRnd/g6wtojLK6y2SFjQ6u9xbbu5tBd/ZgLUk0y628xmLXzaHA pCLAfrH2UzjE/nMyAgd6jmcDFnPp0J+GEme7L2jx4ZyRKVFH37 o2eAv8ywZ2k824u5wtiaS3WDy/NgpsHqDOCL4rq/gIoavv1pp5 y3KruF7H5P9xZ+KYaCdam58pR73gZw+HE5YwHjjS4ND1wbQpqq wkBWv3EymF5I0rFLOl28K4Mv2v8554Gz55SN/ZvVyglbpv4s30 9c72owPWopC1iMk2dQF+vu49RNBzOrnAq8= Subject: Re: [PHP-DEV] [VOTE] RFC: Catchable "call to a member function of a non-object" From: php@thekid.de (Timm Friebe) Hello, =C2=A0 > Yasuo Ohgaki hat am 27. Juli 2014 um 10:11 geschrieb= en: > >=C2=A0 Hi Timm, > >=C2=A0 On Sun, Jun 29, 2014 at 7:40 PM, Timm Friebe > wrote: >=C2=A0 =C2=A0 > >=C2=A0 =C2=A0 a couple of weeks ago, I proposed a change = to the handling of the >situation > >=C2=A0 =C2=A0 where methods are called on non-objects. Instead of an E_E= RROR, the > >engine would > >=C2=A0 =C2=A0 raise an E_RECOVERABLE_ERROR, and enable framework and lib= rary authors to > >handle > >=C2=A0 =C2=A0 this. [...] > >=C2=A0 I like the idea. >=C2=A0 =C2=A0 >=C2=A0 Only thing that I don't like is it depends on error message to be u= seful >=C2=A0 rather than error code/status. Was this discussed? Just curious. No, this wasn't discussed so far. You're right, this could make the code in= side the error handler more readable and robust. It would mean, however, changin= g all the other E_RECOVERABLE_ERRORs too, like argument type mismatching and cert= ain closure and generator operations; and thus was out of scope. I remember this from a couple of years back though; but can't recall why it= was never done. -Timm