Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83478 invoked from network); 13 Sep 2012 21:01:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2012 21:01:04 -0000 Authentication-Results: pb1.pair.com header.from=ralph@ralphschindler.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ralph@ralphschindler.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ralphschindler.com from 209.85.214.170 cause and error) X-PHP-List-Original-Sender: ralph@ralphschindler.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:53431] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/89-31416-E8942505 for ; Thu, 13 Sep 2012 17:01:03 -0400 Received: by obbwc18 with SMTP id wc18so5679133obb.29 for ; Thu, 13 Sep 2012 14:00:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=8n6uCVow0+MUYwpbFvNx2J+Hli0GoIsn6XA5KAUdbMQ=; b=W2pzzEHeCesBJCIJNJyiLz4NH1F1DhXH6Bmd2FCbeJcqDjcNtcJTuj+o8PoINI1QuC LNXfn5Y6iEBjyv24FFrFvEATbLAyB8ebJwMDSDoYxdznw3M5cWhd7tP/QdHTa0eHopse MdvYIGd+sIn6N/Ht+84y65Kl6sI3LpXmyUuQFsmesNc4iydFaWIMbxOmrtrHzP9gEsvk Uycb2f6GzEcuD9VP2Wu8mL0jKTGt+6yfAnxsIfALvRK3he2KSfPsA9O2FxGcD+40D59e vyO2qXcI1ATCCPMmkyi8UlkBVnuBX/bjw0DseQMV6Qys+cqlhwX2+NoM6MqGl40X+2KU oWBw== Received: by 10.182.222.39 with SMTP id qj7mr748416obc.16.1347570058818; Thu, 13 Sep 2012 14:00:58 -0700 (PDT) Received: from Ralphs-Mac-Pro.local (ip174-73-14-247.no.no.cox.net. [174.73.14.247]) by mx.google.com with ESMTPS id k3sm25104394obw.4.2012.09.13.14.00.57 (version=SSLv3 cipher=OTHER); Thu, 13 Sep 2012 14:00:58 -0700 (PDT) Message-ID: <50524989.10204@ralphschindler.com> Date: Thu, 13 Sep 2012 16:00:57 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: internals References: <504F4D33.4070306@ralphschindler.com> In-Reply-To: <504F4D33.4070306@ralphschindler.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlI7kmUeu9mUUp+LBhqLDCeUwT7S2Mu/2HDqMJ0D6ae5Up1/vuK7zpj+zkEVztzngOjKhCj Subject: Re: [VOTE] ::class feature to resolve namespaced class names to scalars From: ralph@ralphschindler.com (Ralph Schindler) Hi all, I know there are few edge cases that need to be resolved. What I am looking for in the RFC/vote is to determine if ::class (as it works in the PoC patch) has enough acceptance for inclusion in master. If there is not enough interest in this by the powers that be, or the feature as currently proposed is not popular enough. I'd rather not spend many more hours on it. I'd like to get as much direction as possible from people so we can close out the edge cases and I can have some clear goals to work towards to get the implementation (including all edge cases) ready to be merged. That said, here is a summary: * The VOTE is for whether entertaining ::class would make it into master, it has little to do with edge cases. * Here are the edge cases / implementation details that need a decision: - $variable::class (should it even be supported?) - self, static, parent::class not in a class definition - self, static, parent::class in a method signature - self, static, parent::class in a method body - if static & parent are runtime, do we return false on misses? -ralph On 9/11/12 9:39 AM, Ralph Schindler wrote: > Hi internals! > > The ::class resolution proposal had significant discussion in April and > I've updated the patch to address issues that came up then. At this > point, I've gotten some positive feedback from various places and feel > its time to open it up for a vote to internals. > > RFC: https://wiki.php.net/rfc/class_name_scalars#vote > > PR: https://github.com/php/php-src/pull/187 > > Thanks, > Ralph