Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59919 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23863 invoked from network); 13 Apr 2012 22:53:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2012 22:53:16 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:40313] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/59-11739-B5EA88F4 for ; Fri, 13 Apr 2012 18:53:16 -0400 Received: by ghbg2 with SMTP id g2so2161847ghb.29 for ; Fri, 13 Apr 2012 15:53:13 -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=8OGfZt+X+YWw/00WqveXtGEuN4iKWLoAb/ahWBtf3PE=; b=uq+OXWUoaLqC1dR+KBvyOYWjU1L75lgzwyDNOZaqq1ORupe3qDwV+A2eiaDtjkX9UO P3iluM31tFUbW13CGnk8ULcJ/1J0P9ljTuZ5432zZsZR1pDeg7wTRU0JZ4u1eIzaWr7b phi1dwFT5vFCzh4eZm/9i39ZGdIEPt+V7HWBifrow2lKIBXjvnCgS8fGqlndrHE8L4EO DsVorBBV92h0+ztTs0pxkM2hv6rbcrJUvI2IMVNTTzS1bbcz0AviKwxQF+QMwNVbqNn3 JCAB1L0lBgJ3/JZ1kbIIZng40c7C4NJZKnrqWqIPs4C2B25xJMpHBu1F1CgTlwbkrdvM istA== Received: by 10.236.190.42 with SMTP id d30mr3298666yhn.77.1334357593681; Fri, 13 Apr 2012 15:53:13 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.146.86.14 with HTTP; Fri, 13 Apr 2012 15:52:33 -0700 (PDT) In-Reply-To: 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:52:33 +0900 X-Google-Sender-Auth: f-5cB56ceOeqrClo_Ia1ZmbPfvA 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 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 should be We don't have to manage already processed files for script_once() buy ourselves. -- Yasuo Ohgaki > 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 t= rust >>> > > > > 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 op= posed >>> > > > on systems you control) you'd have to wait minimum 5 years. Would= n't it >>> > > > better to have it earlier? >>> > > > OTOH, requiring extensions is a common thing for applications, an= d any >>> > > > pecl extension is one command away for most setups, or one downlo= ad 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 r= un 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 >>