Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109232 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54037 invoked from network); 23 Mar 2020 17:39:47 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Mar 2020 17:39:47 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5065D18050A for ; Mon, 23 Mar 2020 09:03:59 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS11403 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 23 Mar 2020 09:03:58 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 9762546A for ; Mon, 23 Mar 2020 12:03:57 -0400 (EDT) Received: from imap26 ([10.202.2.76]) by compute7.internal (MEProxy); Mon, 23 Mar 2020 12:03:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=C5I2fG pbSu/Z81fOT+8vniYnqKFtp9RbwHbgD9AvH5w=; b=1A4Uczu9EhI6qTVNi1Pr+g O3saZwxfMDlcsSVJGl77+c/l1pTkHZVXPwGD1RjnDV1NzrekiY1GCnTVl+hloOVQ H/isVXuHYLCYAOEkeZEKi78OWF55jlnSA0bpTB6lKMBZkp1lyoOZZdgLXbZDSfC4 qxTGJq9v00QUhk5FNSWnurv+IBnj4oGWMSKumKG3OFKiWZ1kai9vLtoOMCBYJxI5 +GTmrFpaa+uTc/u8NDQy3VC68hCiRRTMy97D/okAU/GzKQ67viGCYTLsxEK6Haxz eR3SWSncQoPJNxdC5xiypx4HtwhyK7BPwqAonYP4fKiVuRnDl49ZOa4VptjNwV+Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegkedgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id A569D14200A2; Mon, 23 Mar 2020 12:03:56 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-1021-g152deaf-fmstable-20200319v1 Mime-Version: 1.0 Message-ID: <42f7af27-7140-4fbd-96c8-5c313f86268d@www.fastmail.com> In-Reply-To: References: Date: Mon, 23 Mar 2020 11:03:35 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] Re: [VOTE] Object-based token_get_all() alternative From: larry@garfieldtech.com ("Larry Garfield") On Mon, Mar 23, 2020, at 9:07 AM, Nikita Popov wrote: > On Fri, Mar 6, 2020 at 10:33 AM Nikita Popov wrote: > > > Hi internals, > > > > I've opened voting on https://wiki.php.net/rfc/token_as_object, which > > adds a new object-based interface to the tokenizer. Voting closes on > > 2020-03-20. > > > > This RFC has been accepted unanimously, with 47 votes in favor. > > Based on the additional feedback in this thread, I'll also add a > __toString() method that returns the value of $token->text, unless anyone > has objects to that... > > Regards, > Nikita As long as __toString() is overridable in subclasses, that seems fine to me. --Larry Garfield