Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59918 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22164 invoked from network); 13 Apr 2012 22:46:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2012 22:46:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:59971] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/E8-11739-5CCA88F4 for ; Fri, 13 Apr 2012 18:46:30 -0400 Received: by ggmb2 with SMTP id b2so2170141ggm.29 for ; Fri, 13 Apr 2012 15:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Iikr476gko6smFR/hHGdeXByZyAjgFMQ/6eMHtaX1eY=; b=N6sSe80OtPMZoCfSJqRp2fQ7D/gdDdVOIAQ1iMzRkJd9CMqxDhL0wwnpqU6l9rAtEB 9XDds3062EaRVs0p7GkU5dF9nSUfvWISRWqol3Z2K/GymrHjdMQAr1OQ5QOp2GRgExSz senhkZVlXccs4MB7aWj7s6EX1o1DZIlJvPSq9Z6iSa9LOBkTSv0wmk5SFKsq1lQDemzt EA551FId2Ru/EDk6X5YC7aMqQsyB+/EtE0n3MTfPSVGJh9nJ5ivh99SwkFYNUsnRddO8 +iMkpYhKmwzK7VBn43Xovea0N9s9BEh6Lp8m2f/zfEROcStHNakd6P6IfwdTkw226us/ eo2A== Received: by 10.101.106.26 with SMTP id i26mr781161anm.45.1334357186770; Fri, 13 Apr 2012 15:46:26 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.146.86.14 with HTTP; Fri, 13 Apr 2012 15:45:45 -0700 (PDT) In-Reply-To: <19.18.35770.7A9788F4@pb1.pair.com> References: <4F862AAC.90003@lerdorf.com> <4F86761A.9010801@lsces.co.uk> <4F876E36.1020400@gmail.com> <4F87799D.4060601@sugarcrm.com> <4274B530-5FB8-4292-9262-37044CF98B8B@punkave.com> <4F87B1D6.2070008@sugarcrm.com> <4F87B81F.9000603@gmail.com> <03.6A.35770.215388F4@pb1.pair.com> <19.18.35770.7A9788F4@pb1.pair.com> Date: Sat, 14 Apr 2012 07:45:45 +0900 X-Google-Sender-Auth: YrXXsv9Le-IMUAhfR9qkJJtQcLk Message-ID: To: "Matthew Weier O'Phinney" Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Disabling PHP tags by php.ini and CLI options From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi, 2012/4/14 Matthew Weier O'Phinney : > On 2012-04-13, Tom Boutell wrote: >> Wouldn't this be a significant performance hit when multiplied by >> every class file in a project? > > Typically, you'd cache the end-result of pre-processing, so that > subsequent requests can use the processed results. In other words, you > incur the expense once per file. > We don't have to look up already processed for script_once() by ourselves. Looking up included file cache array is enough. script_once() would be fast enough for most cases. script() will be slower, but nobody would care. Regards, -- Yasuo Ohgaki >> On Fri, Apr 13, 2012 at 10:15 AM, Matthew Weier O'Phinney >> wrote: >> > On 2012-04-13, David Muir wrote: >> > > On 13/04/12 14:55, Stas Malyshev wrote: >> > > > > If this is a pecl module library developers cannot use it and tr= ust >> > > > > that on php 5.n, it just works. That would fork the language in = an >> > > > > undesirable way. It should be a core feature, no ini flag, no >> > > > > sometimes-there module. >> > > > PHP 5.n is at least a year away, wide adoption of it - more like 5= years >> > > > away. So if you want to write code that would run anywhere (as opp= osed >> > > > on systems you control) you'd have to wait minimum 5 years. Wouldn= 't it >> > > > better to have it earlier? >> > > > OTOH, requiring extensions is a common thing for applications, and= any >> > > > pecl extension is one command away for most setups, or one downloa= d away >> > > > for others. And can be made work even in 5.2 if desired. >> > > >> > > Can't it also be handled using streams to inject a leading > > > file prior to inclusion? A PECL extension would then just make it ru= n a >> > > bit faster. >> > >> > I made this very suggestion earlier this week (we do this in ZF1 to >> > emulate short tag support for those who use them). > > > -- > Matthew Weier O'Phinney > Project Lead =A0 =A0 =A0 =A0 =A0 =A0| matthew@zend.com > Zend Framework =A0 =A0 =A0 =A0 =A0| http://framework.zend.com/ > PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >