Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80760 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38770 invoked from network); 18 Jan 2015 21:20:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jan 2015 21:20:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.48 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.218.48 mail-oi0-f48.google.com Received: from [209.85.218.48] ([209.85.218.48:42046] helo=mail-oi0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/04-18613-B932CB45 for ; Sun, 18 Jan 2015 16:20:30 -0500 Received: by mail-oi0-f48.google.com with SMTP id u20so24173892oif.7 for ; Sun, 18 Jan 2015 13:20:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=uEh9FoA8QHrNIKb+MbL3xZLKN7PMtH5cxUH/SWtZBes=; b=NGOH777wn5IM5o5aABQozKsQZ3c6mtDTeqJrgKu7wF77/QZLTaxmoUNT646rE9lPGU Csz0wJnc5qOwwAEA1GN92cX2zPrcQO7+ZWrwsLa+ERGnccrdKkSFDvTXbAdlF8Rmr8uX cNPOqH0freZtQUcolOvp5H4XAowrZ7JG8an64n7G9Nl1L1fxQEKfwVVy2U30N01fWk+q BvCC54TmZK3VKTIKipPtfpxZTJXKin4IvR/1iobsxwaPwHwysf26rHK7h4BdUIK7sMzP 53yBX/ebrM14+N513pahKOn8GyBGHl0KOJ7UkJ+PhzlENEsRfr7M6iJT72KpvYnIZck/ 8wPQ== X-Received: by 10.202.226.70 with SMTP id z67mr15435192oig.95.1421616024395; Sun, 18 Jan 2015 13:20:24 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id t185sm1946655oie.2.2015.01.18.13.20.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Jan 2015 13:20:23 -0800 (PST) Message-ID: <54BC238E.5040202@gmail.com> Date: Sun, 18 Jan 2015 13:20:14 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Sara Golemon , PHP internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Mind if I hook the compiler? From: smalyshev@gmail.com (Stanislav Malyshev) Hi! On 1/17/15 6:58 PM, Sara Golemon wrote: > https://github.com/php/php-src/pull/1004 > > Wondering if anyone has an objection to me merging this. It just > offers extensions a chance to alter the AST prior to bytecode No objection but I wonder if it's time to have some list of the hooks - especially in the light of the effort for making ZE API look like an API. Also, I like "pre-processor hook" a bit better (second patch). -- Stas Malyshev smalyshev@gmail.com