Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90050 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85233 invoked from network); 5 Jan 2016 03:52:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2016 03:52:41 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.217.196 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.217.196 mail-lb0-f196.google.com Received: from [209.85.217.196] ([209.85.217.196:35055] helo=mail-lb0-f196.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/1D-07292-80E3B865 for ; Mon, 04 Jan 2016 22:52:41 -0500 Received: by mail-lb0-f196.google.com with SMTP id tz10so17589174lbb.2 for ; Mon, 04 Jan 2016 19:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ahrSbTmAaOSVqB7BCv+Mw6EOPjxWYM0or0oI6FW/AgA=; b=0l+wvH3Y85A/wjfjCPGbmWcG/Di8RjXScxC1Wy37ZHlUlN+76b1A4eN0hAXKQKiS6L tyZ06Rske6C2TaXFOPp+KQkd3J4lKu/wGpnuRAV9AFihtBxG9J1O/w8rdI/0KQrU32VK 3wMic8tHOtB4AIcjhHnUgC6ffCHg0x+7Myi+TtI9Y09j42R9d8He5v9Y8lQCqH6UGz7u vyIQqXoYS2k/kEs8/9xS3mPRykEmdpLM21H7Sc1sMoviE1N6bsn3KBWXdx3S4syRPvnU QjkT7QJiDN9NYwp32Y3hm7xjbqQawllzajxP03Ckhq7/KysZTNv8/NTQ8K1FrlYMNp7M QI4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ahrSbTmAaOSVqB7BCv+Mw6EOPjxWYM0or0oI6FW/AgA=; b=ZDRQxShVv6V1YkpsrhHRlSJN8eDgHbLRdFKBP/9RoQOMQ+pehJSj+zp9lPWZIHUMN+ ldFG5o2hrU7FgdMHwQvn1/b5SmftPXycuVYhNLWFoRYyqK+FNsit7zLfXO7HZtyT8Rs0 F+pfyNqWQfVMXc6K7BQJnh/fEvPr6j+Aurq4Yv/8jfVQP0pCLUiRaCSMcnEFIJy52q3I FYsticiP+soKnLxyWFxa2Pr1BH5ylYyzJsWcHrGvpkI/aWH7yEPa0FSyeGYysepRDDr8 PMjdz71aMgT+cwcWs5Asf08/t8lQWjX9oVx7sp+E6lUR6CL3mwXw9dTbHWellRdY9Kg1 5s+A== X-Gm-Message-State: ALoCoQlHoLvvmD7jAc6MdQFwmvBkbYWl9vp4oDi1EmkZU+GHsFyuBrXNm585goFizuYgN2K1fJv/w5lpgw8LTKfAU3tvMDPSPQ== MIME-Version: 1.0 X-Received: by 10.112.151.67 with SMTP id uo3mr25936048lbb.43.1451965957337; Mon, 04 Jan 2016 19:52:37 -0800 (PST) Sender: php@golemon.com Received: by 10.112.37.44 with HTTP; Mon, 4 Jan 2016 19:52:37 -0800 (PST) X-Originating-IP: [107.198.91.68] In-Reply-To: <568B3A9E.7000505@gmail.com> References: <568B0C84.7060802@gmail.com> <568B3A9E.7000505@gmail.com> Date: Mon, 4 Jan 2016 19:52:37 -0800 X-Google-Sender-Auth: JfXRl7xOjrryklXLWmnywXc6-Iw Message-ID: To: Stanislav Malyshev Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Normalize token_get_all() output (with flag) From: pollita@php.net (Sara Golemon) On Mon, Jan 4, 2016 at 7:38 PM, Stanislav Malyshev wrote: >> Do you mean have users of the API do that? Or have the implementation >> of token_name() do that? Because the latter doesn't seem unreasonable >> at all. > > I meant for token_name() to do that internally, so that the user can use > just token_name() instead of boilerplate code. Sorry for not being clear. > >> For example: >> var_dump(token_name(ord(';'))); // string(1)";" > > Yes, exactly. > Awesome, have updated the RFC accordingly. -Sara