Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52460 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83538 invoked from network); 19 May 2011 14:55:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2011 14:55:47 -0000 Authentication-Results: pb1.pair.com header.from=ava3ar@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=ava3ar@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ava3ar@gmail.com X-Host-Fingerprint: 74.125.83.170 mail-pv0-f170.google.com Received: from [74.125.83.170] ([74.125.83.170:35279] helo=mail-pv0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/61-04336-37F25DD4 for ; Thu, 19 May 2011 10:55:47 -0400 Received: by pvg16 with SMTP id 16so1416053pvg.29 for ; Thu, 19 May 2011 07:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=6CC1Vv2AloKg0Qe0kw7vqwJnKWOZQO06UlxyJFpEjKc=; b=CqJ2rk6lVjF2HoX9MTOcPkVH1K4zEllRuU4iQQIGIULki0ppDw1+3nCT7hRghw44HR LhlzlV8CaXul68RibNBUWF+xD+KNQo8QrAIhomXOJ5HoeZKndb0n2oT1FUOHPa3k9A9W Grje3q6IeJgLzdoEgXP3JMwnlzJrf8Kj9joIE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=dgXrDrzHD/oslJYJstUfifU0dOIPvcHoUaOtcVqQgJbCXfaDCJgcVuUezM1Deg5Fh3 JhbO9H17V0p37SZ3ojt9esY2Jmri+Wuigo0V6eFnHqC7V4YZyVEK+z46UYiO8VKFBLT0 5KVwRS248vObvo0RGK7cPoS03w523Bxn611Hw= Received: by 10.68.13.4 with SMTP id d4mr5075447pbc.64.1305816944044; Thu, 19 May 2011 07:55:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.43.72 with HTTP; Thu, 19 May 2011 07:55:24 -0700 (PDT) In-Reply-To: References: <49E352FD.6070008@gmail.com> <2dedb8a0904131124u57f2f32ei27083a289f7f18a4@mail.gmail.com> <49E39B3C.2020401@zend.com> <49E47BF2.3090807@gmail.com> <9b3df6a50904140811o6d57a426gd320a822271e19f3@mail.gmail.com> <49E4CE2D.7010402@zend.com> <3B1B513E-2712-40C4-AC20-4A21EB039629@roshambo.org> <0D1369A8-0154-4E34-9069-27AB267AE06F@roshambo.org> <4DD464C2.4060407@lerdorf.com> <4DD47AEA.1080306@sugarcrm.com> Date: Thu, 19 May 2011 15:55:24 +0100 Message-ID: To: Michael Morris Cc: Arvids Godjuks , Ferenc Kovacs , PHP Internals Content-Type: multipart/alternative; boundary=bcaec520edab176b4604a3a2334c Subject: Re: [PHP-DEV] Re: Is it true that short_open_tag is deprecated in PHP 6? From: ava3ar@gmail.com (Keloran) --bcaec520edab176b4604a3a2334c Content-Type: text/plain; charset=ISO-8859-1 I like the idea of having an option for no tags needed, since its a .php file (or what ever you have set as your interpd name) that gets sent to the interpreter anyway, it shouldnt really need opening tag, the only thing of this that i dont like is the runtime side of it, imo that shouldnt be an option On Thu, May 19, 2011 at 3:39 PM, Michael Morris wrote: > Some time ago I floated this idea without any traction. I wanted to make an > RFC but never got any help in setting up an account to submit it. Here it > is again: > > Tag style can be set from the ini file, htaccess/httpdconfig or changed at > runtime. If changed at runtime it only affects files that haven't been > included yet. Tag Style can also be passed as the second argument to the > include, include_once, require, and require_once statements. Those > statements fall back to the current setting if a second argument isn't > passed. The tag style is a bitfield as follows: > > Bit > 0 -- Standard tags toggle > 1 -- Short tags toggle > 2 -- ASP tags toggle > 3 -- Script tags toggle > 4 -- Short echo toggle. > > For backwards compat ship with bits 0 and 3 set on. The existing short tags > mode is bits 1 and 4 on. If all the bits are turned off then we have the > PHP_TAGS_NONE setting. In that mode the engine assumes the whole file is > going to be PHP code since there will be no tags at all (helpful for class > libraries that don't create output in the MVC architecture). > > If the php.ini file has either of the legacy tag settings turned on, and > tag_style wasn't explicitly set, then php will set tag style to the values > it must have to mimic the intent of the setting. If tag_style is explicitly > set then it wins out - but a deprecated notice gets thrown to alert the > user > that they have both tag_style set and short_open_tags and/or asp_tags set > on. > > If an htaccess or httpd.conf directive explicitly calls for short_tags or > asp_tags after tag_style was explicitly set a warning of some sort is > thrown > informing the user that they must switch that declaration to one compatible > with the php.ini file. > > The upshot of this is to allow distributions that want to use short tags to > be able to use them without worrying about local server settings. Also, > distributions can be made to contain files without any tags at all. > Teaching IDE's that it is possible for a PHP file to have no tags > could be tricky though. > > On Thu, May 19, 2011 at 3:23 AM, Arvids Godjuks >wrote: > > > It's essentially the same what I said - move it out of stort_tags and > > make it "On" permanently. > > > > As I remember the decision to remove short_tags was made together with > > register_globals, magic_quotes and other legacy stuff. I can be that I > > remember wrongly, but really do people really use <% ? > > > > 2011/5/19 Ferenc Kovacs : > > > > > > > > > On Thu, May 19, 2011 at 8:53 AM, Arvids Godjuks < > > arvids.godjuks@gmail.com> > > > wrote: > > >> > > >> Hello. > > >> > > >> As a userland developer i'm all for it. Remove short_tags and decouple > > >> > >> > > > > > > I think that it's a little bit hasty. > > > I would propose that the short open echo should be always enabled > > > independently from the short_open_tag, and this should be documented > and > > > done with it. > > > Tyrael > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > --bcaec520edab176b4604a3a2334c--