Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41735 invoked from network); 6 Oct 2015 14:49:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Oct 2015 14:49:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=mailto.woden@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mailto.woden@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.45 as permitted sender) X-PHP-List-Original-Sender: mailto.woden@gmail.com X-Host-Fingerprint: 209.85.215.45 mail-la0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:35949] helo=mail-la0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/C2-19251-78FD3165 for ; Tue, 06 Oct 2015 10:49:44 -0400 Received: by laddr2 with SMTP id dr2so28435517lad.3 for ; Tue, 06 Oct 2015 07:49:41 -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=Dp4rv4W08E6yb7ASjz/QuP3b44wTXTs13M9RfKYJHBo=; b=AzVCX6ihmsauyqBGgi8gbdMbWiL37ZUQHlhwf8349KGgzOFEG+/wKUTJk3tlC7/9A0 pK04776tSYnfrde9uigkVqcWGYHamskBT9+R1JjTEENixNDXHyb0wDbyKxbbl5dV6zdG dORC1Ws/bGzZu4LoEaKPiyGpuWVQi7Rhwg0yYIp4b3ZM66LEvo/I9fy0o2r0BBFW8hIJ fqLIY+fVYe7+Q20Bz6yg4owKeb7CgFMw6lPAD5YTv1CL/wCKSRLTsDP1wZ+3bSJSUdDH XBCbREsJDlCmZr4p9gFZnQOuy1Pm1b4GD20u0og3Tv5HWIS62al6Z6eSHIZc7xwBS9lc uZ8A== MIME-Version: 1.0 X-Received: by 10.112.77.10 with SMTP id o10mr13436125lbw.28.1444142980891; Tue, 06 Oct 2015 07:49:40 -0700 (PDT) Received: by 10.112.49.168 with HTTP; Tue, 6 Oct 2015 07:49:40 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Oct 2015 16:49:40 +0200 Message-ID: To: Dan Ackroyd Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c3ba82619bc2052170bd97 Subject: Re: [PHP-DEV] [RFC] [DRAFT]: Consistent callables From: mailto.woden@gmail.com (Daniel Persson) --001a11c3ba82619bc2052170bd97 Content-Type: text/plain; charset=UTF-8 Hi Dan. Had this email in the "need-to-read" pile for over a week and finally got the time to go though the RFC. Seems like this is something that we need to address. Inconsistencies are never good. The only thing I want to point out is that is_callable as well as method_exists don't state in the manual that the functions or methods referred is visible. To make this function implied I think the manual should be updated to state it. For instance public class A { private function foo() {} } method_exists(new A(), "foo") is technically true. The method exist but is not visible from your context. For instance when you use reflection you might want to find any method that exists? Or should that be handled by the pure reflection API? Either way I think the manual needs to state this clearly. Best regards Daniel On Tue, Sep 29, 2015 at 4:25 PM, Dan Ackroyd wrote: > Hello internals, > > Here is a draft RFC to make the callable type in PHP be consistent and > have much fewer surprises. > > https://wiki.php.net/rfc/consistent_callables > > This RFC is probably not ready for the formal discussion that is held > before a vote on it can be held as there may be some more details of > what changes are necessary lurking, waiting to be found, in the PHP > source code. However I would like to gather feedback about the > likelihood of the RFC passing, as implementing a patch for this RFC is > likely to be a significant amount of work. > > And yes most of this RFC targets PHP 8 with only small parts for 7.1. > I realise that it is easy to think that it's a bit early to start > thinking about that before 7 is out the door, but as there was a > stampede of RFCs for PHP 7, I think the earlier RFCs can be discussed > the better. Depending on the feedback, I imagine I would put this RFC > up for a formal discussion and vote early in the new year. > > cheers > Dan > Ack > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c3ba82619bc2052170bd97--