Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76206 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77759 invoked from network); 28 Jul 2014 00:02:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jul 2014 00:02:09 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.172 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.172 mail-lb0-f172.google.com Received: from [209.85.217.172] ([209.85.217.172:51469] helo=mail-lb0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/00-11902-FF295D35 for ; Sun, 27 Jul 2014 20:02:08 -0400 Received: by mail-lb0-f172.google.com with SMTP id z11so5344854lbi.3 for ; Sun, 27 Jul 2014 17:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=+2WZ4Vc7G6jXtQZJPqw153KVU9ONGb3QHcoUr6o1JhQ=; b=cOs0+IxXPTXteyZqujZjl0zGItmG3rVwk0Z5+NirynWqQduItnBYRhFwsYfCidiBd8 BSnMxVjijSuNG85GRLiMM2Cu6yNQc84Ema78/dthRYQJzL8oDvB6Ak9ewtJdVAZubrBB UiukysjUQoAJ3feTe8hag2egT7QfNNgZ/L3rj0uHM8fMkS5hjhmyUNCXMj8WtxmC+NwD +7a8sINUBwlAWDiHqHv1WS3Kh0sHk/wmg6JyUQxTW7n06g3x65xSf0037XPZlcrlVLCA AQhb1jwSKQ09+WDBt0c/72WrUm5Kk3SsZHBmJ30o4n/rYviaQJ09UB+Y+Epu0Nlh5Yfr sJig== X-Received: by 10.112.137.73 with SMTP id qg9mr29025712lbb.57.1406505735515; Sun, 27 Jul 2014 17:02:15 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.214.228 with HTTP; Sun, 27 Jul 2014 17:01:35 -0700 (PDT) In-Reply-To: <1290246035.235053.1406451366002.open-xchange@oxbaltgw02.schlund.de> References: <801311915.137460.1404038401570.open-xchange@oxbsltgw54.schlund.de> <1290246035.235053.1406451366002.open-xchange@oxbaltgw02.schlund.de> Date: Mon, 28 Jul 2014 09:01:35 +0900 X-Google-Sender-Auth: bkQzl7FPN550OeZs9c6SAysWR4A Message-ID: To: Timm Friebe Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e01177551bd90c504ff35a2db Subject: Re: [PHP-DEV] [VOTE] RFC: Catchable "call to a member function of a non-object" From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e01177551bd90c504ff35a2db Content-Type: text/plain; charset=UTF-8 Hi Timm, On Sun, Jul 27, 2014 at 5:56 PM, Timm Friebe wrote: > > Only thing that I don't like is it depends on error message to be useful > > 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 > inside > the error handler more readable and robust. It would mean, however, > changing all > the other E_RECOVERABLE_ERRORs too, like argument type mismatching and > certain > 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. Looking forward new RFC. We are better to have cleaner API. Optional parameter for user defined error handler is adequate, probably. Addition to error context is the cleanest, perhaps. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e01177551bd90c504ff35a2db--