Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82950 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92417 invoked from network); 17 Feb 2015 12:22:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2015 12:22:28 -0000 Authentication-Results: pb1.pair.com header.from=lisachenko.it@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lisachenko.it@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: lisachenko.it@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wg0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:46709] helo=mail-wg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/61-19463-38233E45 for ; Tue, 17 Feb 2015 07:22:27 -0500 Received: by mail-wg0-f50.google.com with SMTP id l2so34943965wgh.9 for ; Tue, 17 Feb 2015 04:22:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qExP6AwRPI4qN1JJRwqT6mbHF9TSxZR2llXEFF9HgAU=; b=H5k+AXETz3bPQKUKtI5XcQmzTDVj+6qOLH4xiGNPImjoRgU8quIduzhb5WoQR/MQj2 dRW9fqMkTsQSLQgxbuqt/Fvhm0s1u0FI0GQoq6NoJqiN/rfCAcXki+CjeneDIH+rP3L8 GR7g529fl6pmEFfVa38mVDsHY1GtixRH/YjLOOnESv7RqtdaAfesDHM43/CiTuFSQjXe huZ1udquOOX2FRFi69/EgWT+cHXLYv0sq0tlJqPPXjnIHaHG4/mrTLHn2Jxgu137wwj8 gsfe9K1qXl8t/iyFUeV516oI4tt+b79Q3pAW0V8Nrtv2R9NqpCeyWSMtRiNntHoSj3DY ZfMQ== MIME-Version: 1.0 X-Received: by 10.194.71.110 with SMTP id t14mr61737988wju.58.1424175742265; Tue, 17 Feb 2015 04:22:22 -0800 (PST) Received: by 10.194.154.229 with HTTP; Tue, 17 Feb 2015 04:22:22 -0800 (PST) In-Reply-To: References: Date: Tue, 17 Feb 2015 15:22:22 +0300 Message-ID: To: Benjamin Eberlei Cc: PHP internals list Content-Type: multipart/alternative; boundary=047d7bfd0bd6372ec7050f47c144 Subject: Re: [PHP-DEV] [RFC][Discussion] Parser extension API From: lisachenko.it@gmail.com (Alexander Lisachenko) --047d7bfd0bd6372ec7050f47c144 Content-Type: text/plain; charset=UTF-8 2015-02-17 15:09 GMT+03:00 Benjamin Eberlei : > The visitor API is the essential part here and you left it out. Yes, I decided not to put Visitor in the RFC (this was added as open question to the RFC). But this part can be discussed in the case of general acceptance. 2015-02-17 15:09 GMT+03:00 Benjamin Eberlei : > How does this work with Engine Extensions, are they considered for all > require/include's *after* the registrtion? How does this work with opcache? Yes, parser extensions will be called for all require/include/evals after registration. This part is transparent for opcache, because opcache just stores an opcodes for the file. AST is parsed only once for each file, then hooks can transform the AST and after that compiler will produce a final opcodes that can be stored for that file in the opcache. So, I expect no impact on opcache logic. --047d7bfd0bd6372ec7050f47c144--