Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72440 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53125 invoked from network); 10 Feb 2014 14:55:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2014 14:55:22 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.181 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.128.181 mail-ve0-f181.google.com Received: from [209.85.128.181] ([209.85.128.181:41141] helo=mail-ve0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/21-45672-958E8F25 for ; Mon, 10 Feb 2014 09:55:21 -0500 Received: by mail-ve0-f181.google.com with SMTP id cz12so5081209veb.12 for ; Mon, 10 Feb 2014 06:55:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=bAQiRdvI7ZZEDFBQ4Y1fK3rQcqHgNWIkymkJdoryxPQ=; b=V9CHH/KrZM47W8mpd7HbVOtO2EVyiLWBAGfctZK/0MkRmgktAuhrlXa5Cdjfz3jxNL 0wuAigOn26GSmybcZUgEFKmn7jGmq84O+2aZBe+Q+LksLo86/knXbet23AjrJgmrpICN VFKGNcbi97js1ImGM6HUeshDrr9NDrRVQ0+aWYWyLusU6o663QCZQVe75rrGRLQYCU7T LzHO9lSgR0b8/iVGblllGQgOAFclLnh+LzbL+0cl0M3LwJuI5QcYX0qKreYZJertULV5 xaiRtAhvfbVTmX4jtqypdbk7ycvC4+I22XMSIs/AkXwxY48CugGOsyEXwX89a+oV84KP Lx1g== X-Received: by 10.220.250.203 with SMTP id mp11mr13001003vcb.2.1392044118554; Mon, 10 Feb 2014 06:55:18 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.221.8.129 with HTTP; Mon, 10 Feb 2014 06:54:38 -0800 (PST) Date: Mon, 10 Feb 2014 15:54:38 +0100 X-Google-Sender-Auth: CGUU7PjDvJzIKam-ZlSj1_SUedk Message-ID: To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: token_get_all() new API From: jpauli@php.net (Julien Pauli) Hi all, I recently worked on token_get_all() implementation to add an extra argument to the function to show token names directly in the output instead of having to call token_name() on every output (usually what is done nowadays). I also added a flag so that the parsed scanner value can become optionnal in the output, as sometimes one just wants a token stream and is not interested in dealing with the scanner ouput. If you have ideas or thoughts ? https://github.com/jpauli/php-src/compare/token_names Julien.P