Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59900 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61580 invoked from network); 13 Apr 2012 19:08:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2012 19:08:24 -0000 X-Host-Fingerprint: 208.107.13.98 host-98-13-107-208.midco.net Date: Fri, 13 Apr 2012 15:08:23 -0400 Received: from [208.107.13.98] ([208.107.13.98:18810] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/18-35770-7A9788F4 for ; Fri, 13 Apr 2012 15:08:23 -0400 Message-ID: <19.18.35770.7A9788F4@pb1.pair.com> To: internals@lists.php.net 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> User-Agent: slrn/pre1.0.0-18 (Linux) X-Posted-By: 208.107.13.98 Subject: Re: [PHP-DEV] Re: Disabling PHP tags by php.ini and CLI options From: weierophinney@php.net (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. > 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 trust > > > > > 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 opposed > > > > 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 download 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 run 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 | matthew@zend.com Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc