Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99760 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47356 invoked from network); 5 Jul 2017 12:28:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jul 2017 12:28:34 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 84.19.169.162 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 84.19.169.162 mail.experimentalworks.net Received: from [84.19.169.162] ([84.19.169.162:48056] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/1C-15131-17BDC595 for ; Wed, 05 Jul 2017 08:28:34 -0400 Received: from kuechenschabe.fritz.box (ppp-46-244-178-134.dynamic.mnet-online.de [46.244.178.134]) by mail.experimentalworks.net (Postfix) with ESMTPSA id 477835DF72; Wed, 5 Jul 2017 14:28:30 +0200 (CEST) Message-ID: <1499257709.19635.83.camel@schlueters.de> To: Rowan Collins , internals@lists.php.net Date: Wed, 05 Jul 2017 14:28:29 +0200 In-Reply-To: <679F251C-FFDA-4D9A-A0C2-89AA767A2402@gmail.com> References: <827b77ce-f2b7-930a-34cb-ce11ebc2d531@php.net> <679F251C-FFDA-4D9A-A0C2-89AA767A2402@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] OBJECT_OPERATOR vs. DOUBLE_COLON From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Mi, 2017-07-05 at 11:24 +0100, Rowan Collins wrote: > Firstly, I'm not sure where you got the names you've put in > ALL_CAPS  from, but they're not the official names of the operators > anywhere I've seen. The double-colon is technically the "Scope > Resolution Operator", or internally T_PAAMAYIM_NEKUDOTAYIM (which > does mean double-colon). It's described in the manual here:  http://p > hp.net/manual/en/language.oop5.paamayim-nekudotayim.php > We use T_DOUBLE_COLON in reflection: ext/tokenizer/tokenizer_data.c: REGISTER_LONG_CONSTANT("T_DOUBLE _COLON", T_PAAMAYIM_NEKUDOTAYIM, CONST_CS | CONST_PERSISTENT); ext/tokenizer/tokenizer_data.c: case T_PAAMAYIM_NEKUDOTAYIM: return "T_DOUBLE_COLON"; and I believe it appears/appeared in other places, too. johannes