Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59824 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37695 invoked from network); 13 Apr 2012 00:49:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2012 00:49:04 -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.214.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:47327] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/9C-00290-FF7778F4 for ; Thu, 12 Apr 2012 20:49:03 -0400 Received: by obbta17 with SMTP id ta17so2688980obb.29 for ; Thu, 12 Apr 2012 17:49:01 -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; bh=NECvzwnTwgHMetpBNsHl8VzYo9FthVA0TxCQiuS/4yY=; b=k3/zk3IAb4KLdjd2YHbjh0LN+rszZFhhINlLPW/oZrUtxKvFVg8JRqEL08oUazdkgk aA6JrhBR0epvXxjYXeoL/+CqekgaMLLcLZTx/YCoVcGOA6lYAUdfqajTskf3yZIa1bOz BAQ8TBqG69xvD9E1PRBNCKFe40VePTVHc2D7AviEvf5YhKW/lgtvnDMm5wboqcqsyRjt 87TBg9Bn0CfAQx36kCJXgjYCBheNqYRvKOn9SrYzmL5p3hNQnKkRbzmFIL9eKc8V9BkD 4siGo4SXWNMMj0vLNTk4U4xI/gGqBpmkqhDEYuIdqqt52FvVyyodDt+2RRfzeVUdolye /ang== Received: by 10.60.18.198 with SMTP id y6mr309295oed.38.1334278141163; Thu, 12 Apr 2012 17:49:01 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.182.226.9 with HTTP; Thu, 12 Apr 2012 17:48:15 -0700 (PDT) In-Reply-To: <4F876E36.1020400@gmail.com> References: <4F851FE4.7000706@sugarcrm.com> <4F8539E0.1090701@sugarcrm.com> <4F859063.1010401@lerdorf.com> <4F862AAC.90003@lerdorf.com> <4F86761A.9010801@lsces.co.uk> <4F876E36.1020400@gmail.com> Date: Fri, 13 Apr 2012 09:48:15 +0900 X-Google-Sender-Auth: YyiTuJp_WYeJ5q_D61GcSMfoYG4 Message-ID: To: David Muir Cc: Arvids Godjuks , Lester Caine , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Disabling PHP tags by php.ini and CLI options From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi, 2012/4/13 David Muir : > On 13/04/12 10:02, Arvids Godjuks wrote: >> It will never get adopted, too many legacy stuff, to many external tools. >> And php native templates? I dont neet any twig, smarty or any other stuff. >> And guess what - most template engines cache compiled templates, and they >> are - ta-daa - PHP EMBEDDED IN HTML CODE! >> > > I was wondering when someone was going to point that out. ;-) > > David I've said "PHP without templating is not PHP", too. :) I would like to save current code as much as it can, so I prefer php.ini switch over other method. If I exclude current code, then introducing script only include will be preferred one. I preferred dedicated statement for it though. include include_once require require_once script script_once something like this. And for CLI switch, of course. Framework developers can use define script/script_once function script($file) { require($file); } function script_once($file) { require_once($file); } like this for compatibility. Regards, -- Yasuo Ohgaki