Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90284 invoked from network); 14 Jan 2010 21:54:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2010 21:54:34 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.220.227 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.220.227 mail-fx0-f227.google.com Received: from [209.85.220.227] ([209.85.220.227:50691] helo=mail-fx0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C7/26-56067-9929F4B4 for ; Thu, 14 Jan 2010 16:54:34 -0500 Received: by fxm27 with SMTP id 27so13111fxm.23 for ; Thu, 14 Jan 2010 13:54:30 -0800 (PST) Received: by 10.103.67.32 with SMTP id u32mr665103muk.61.1263506069991; Thu, 14 Jan 2010 13:54:29 -0800 (PST) Received: from ?192.168.200.22? (c-98-234-184-167.hsd1.ca.comcast.net [98.234.184.167]) by mx.google.com with ESMTPS id j10sm3895891mue.30.2010.01.14.13.54.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 14 Jan 2010 13:54:28 -0800 (PST) Message-ID: <4B4F9290.10906@lerdorf.com> Date: Thu, 14 Jan 2010 13:54:24 -0800 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Raphael Geissert CC: internals@lists.php.net References: <4B4D2883.5040703@lerdorf.com> <4B4DFF46.7060908@lerdorf.com> <4B4F87AA.2090608@lerdorf.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Throwing an E_DEPRECATED for short_open_tag From: rasmus@lerdorf.com (Rasmus Lerdorf) Raphael Geissert wrote: > Rasmus Lerdorf wrote: > >> Raphael Geissert wrote: >>> I'm still looking for a way to warn about the use of open_short_tag not >>> being explicitly enabled on the PERDIR level. Otherwise the only thing I >>> see would make applications change would be when the default is Off and >>> they break. >> But why do you want them to change? Short tags are convenient and if >> the app doesn't have to worry about > run happily with short tags enabled. > > Because it is just not about the application but the whole system. With the > apache filter SAPI enabling short_open_tag is really a no-op. As for the > other SAPIs it mostly depends on what kind of files are used and whether an > extension such as htscanner is at hand or not. > > If that's not available, having to change the settings for every application > is a mess. By making it a runtime-only option they would always work. A runtime option to turn them on would require a really ugly hack, or a really ugly tag at the top of all short tag files like: That doesn't seem like a very nice solution to me. I think your goal of making all apps run under the same config is a lost cause. I know the Gallery3 guys are very much sticking with the short_open_tag in their new version, for example, and I don't blame them. Wouldn't it make more sense to come up with a nice way of having per-app configs instead? Drop an app_name.conf file in a server config directory and off you go. -Rasmus