Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57931 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30342 invoked from network); 22 Feb 2012 05:55:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2012 05:55:43 -0000 Authentication-Results: pb1.pair.com header.from=flavius.as@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=flavius.as@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: flavius.as@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:60241] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/E0-16342-C53844F4 for ; Wed, 22 Feb 2012 00:55:42 -0500 Received: by eaal11 with SMTP id l11so2758673eaa.29 for ; Tue, 21 Feb 2012 21:55:36 -0800 (PST) Received-SPF: pass (google.com: domain of flavius.as@gmail.com designates 10.14.48.7 as permitted sender) client-ip=10.14.48.7; Authentication-Results: mr.google.com; spf=pass (google.com: domain of flavius.as@gmail.com designates 10.14.48.7 as permitted sender) smtp.mail=flavius.as@gmail.com; dkim=pass header.i=flavius.as@gmail.com Received: from mr.google.com ([10.14.48.7]) by 10.14.48.7 with SMTP id u7mr14323227eeb.89.1329890136750 (num_hops = 1); Tue, 21 Feb 2012 21:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:organization:user-agent:mime-version :to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=YEh7YDOz59bC8Av58snI/VPNbOTM08i3n2NS1F0ZFbY=; b=B5+Zgbn6W53Vu8iCUTMb7NrXO3QEAfsih7+xb1xxvlwl+hIgzjYFI8DE4wuOiVt2vU mlmMVj5jcN2STKJx4NUj3Fg0UvNPIL8fiVFSFSag7jE6qZqkh0DE2BfG2mcxG5Og1Xw0 8tngMO3fS4qm1E4nLQUiKsMm+n0DZj2guTkgQ= Received: by 10.14.48.7 with SMTP id u7mr11452919eeb.89.1329890136607; Tue, 21 Feb 2012 21:55:36 -0800 (PST) Received: from [192.168.1.2] (chello080109207086.1.graz.surfer.at. [80.109.207.86]) by mx.google.com with ESMTPS id n52sm98757875eea.5.2012.02.21.21.55.35 (version=SSLv3 cipher=OTHER); Tue, 21 Feb 2012 21:55:35 -0800 (PST) Message-ID: <4F448356.3020008@php.net> Date: Wed, 22 Feb 2012 06:55:34 +0100 Reply-To: flavius@php.net Organization: PECL User-Agent: I am harmful. Fear me please :-) Mnenhy/0.7.6.666 MIME-Version: 1.0 To: Deepak Balani CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP Script Compile System From: flavius.as@gmail.com (Flavius Aspra) On 02/22/2012 06:49 AM, Deepak Balani wrote: > Hello all, > > I am think(actually drafting) about the compilation system of PHP scripts. > I want to make a native C extension which is able to compile the scripts in > the Zend Engines opcodes and execute directly when called. > > The extension may have two functions. > > bool gpc_compile($source, $target): compile file to opcodes. > mixed gpc_import($target) Include file to current script. > > gpc_import function accepting path to the compiled file and execute file > into the zend engine. I want to know perception of you all about this. > > Thank you. > Deepak Balani > Hi Do you mean something like apc_compile_file()? I think we already have it. Or perhaps you mean runkit?