Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62855 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 189 invoked from network); 6 Sep 2012 09:14:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2012 09:14:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=ml@anderiasch.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ml@anderiasch.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain anderiasch.de from 81.169.138.148 cause and error) X-PHP-List-Original-Sender: ml@anderiasch.de X-Host-Fingerprint: 81.169.138.148 ares.art-core.org Linux 2.5 (sometimes 2.4) (4) Received: from [81.169.138.148] ([81.169.138.148:43584] helo=mail.anderiasch.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/71-27906-F8968405 for ; Thu, 06 Sep 2012 05:14:56 -0400 Message-ID: <5048698B.1080600@anderiasch.de> Date: Thu, 06 Sep 2012 11:14:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 To: internals@lists.php.net CC: sebastian@php.net References: <504836A3.20904@zend.com> <50486309.1090601@php.net> In-Reply-To: <50486309.1090601@php.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Moving to an AST-based parsing/compilation process From: ml@anderiasch.de (Florian Anderiasch) On 09/06/2012 10:47 AM, Sebastian Bergmann wrote: > On 09/06/2012 06:37 AM, Dmitry Stogov wrote: >> The only real advantage could be an ability to expose AST to PHP scripts, >> but only few people may need it. > > Everyone working on static analysis tools for PHP code needs access to > the (canonical) AST. While the number of people behind this "everyone" > will be small (hopefully it will grow) but the tools they create based > based on the AST will be valuable for every PHP developer. > I fully agree with Sebastian here, nearly all the methods used in the past to get some meaningful analysis done relied on third party tools, were immensely prone to breakage or both. I've used phc up to 5.2 without problems but after that I didn't really keep up trying yet again another completely different method. This is such a basic task for static analysis, something not in the core will always be a second-class citizen. And yes, the people directly benefitting from this and not indirectly from the tools produced will probably be quite happy. So unless something is getting slower, +1. Greetings, Florian