Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75375 invoked from network); 25 Feb 2016 13:39:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2016 13:39:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.160.177 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.160.177 mail-yk0-f177.google.com Received: from [209.85.160.177] ([209.85.160.177:36396] helo=mail-yk0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/67-29886-8240FC65 for ; Thu, 25 Feb 2016 08:39:53 -0500 Received: by mail-yk0-f177.google.com with SMTP id z7so21818322yka.3 for ; Thu, 25 Feb 2016 05:39:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SxDCUTDaoKajdL82sVKz0TEz3F9pAJkwNXudTAM/j/M=; b=I5mWzIlVpBAAFv85jEbGzGaIRLZtMqh/o8cPKlcSCxPGI8IWv6iueaORm9xNX7iIbR f06HQJU5uH3rBk9mPey2py97MUcGqdyDpwBF/93CDAedkcvFPQYdt8/ainoeB/EIUjM2 N7FQn/GuHePhh0dwts2e+eCkeq18QK8D0FcGOzYMeIUF5JbrUBSeNnLN4/FHGruue55H BF+7//51j7dXD03OzvgLDzA18jtlGdvwDmi/Tp7CAMvjI4gevjbbTH4dnhuT9tESPpBM YfIohuv3MjWOnnDZ0JeEBLyjc1Nas4kPdrTMLKcwU62PMQ+l+qZKWLGvdoj1I2rLt786 d4Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=SxDCUTDaoKajdL82sVKz0TEz3F9pAJkwNXudTAM/j/M=; b=iHenuTjQTneCJipEhWM6tszxj1bwDjwElgRU+sCKlrDZG0UFRH1UYuogWz32H7mY81 qSN/11fK0J2d74ZpOhrwzrszANw30LxBvo+jg2GF+JuHQyASffzvAHWZcEs+bnFRQhja 881WeUVRTUAj2GCvLUEgQxGh7YuTDvLfHUYcBgVTCCzbrnqfi0zdg7uAzHU6hxoN9o6D vnlqnO6m0rMEgqphzD9Dbb7TxioTbkMTHMErDVNmM/+HtogjGTIPmwh1+5Jpw+AmHUEX ZBAvb1yRSbHPbJwPLgDoQDezE7uq7KtJI52k11BQswbyEDJNkW4rHtwjWuoyDO45p3l4 Kt0w== X-Gm-Message-State: AG10YOR5fXuY/FGqNwL7Mvk/1zEUIHK8d5N4jcCAVWuTS3i5GhhKgDSJhDjhAfTP2Yv1Sh9uDZlgfEDVbaFS+w== MIME-Version: 1.0 X-Received: by 10.37.230.204 with SMTP id d195mr6385443ybh.134.1456407589768; Thu, 25 Feb 2016 05:39:49 -0800 (PST) Received: by 10.37.43.85 with HTTP; Thu, 25 Feb 2016 05:39:49 -0800 (PST) X-Originating-IP: [2.98.218.189] In-Reply-To: References: Date: Thu, 25 Feb 2016 13:39:49 +0000 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [RFC] [DRAFT]: Consistent callables From: danack@basereality.com (Dan Ackroyd) On 29 September 2015 at 14:25, 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 Hello again, I'd like to give everyone an update on the 'Consitent Callables RFC' https://wiki.php.net/rfc/consistent_callables It was brought to my attention that the main piece of work for this RFC that would need to target PHP 7.1 was actually already implemented in PHP 5.5, and that self::class, and parent::class already resolve to the correct classnames, i.e. the code below already works. As it won't be feasible to introduce the main change before PHP 8, I plan to wait to formally propose the RFC until closer to the time when we are thinking of starting PHP 8 development, or probably around June 2017 - whichever comes first. cheers Dan class A { public static function whoAreYou() { echo "I am A!\n"; } } class B extends A { public static function whoAreYou() { echo "I am B!\n"; } public static function test() { $fn = [parent::class, 'whoAreYou']; $fn(); $fn = [self::class, 'whoAreYou']; $fn(); } } B::test();