Re: dropping asp_tags in HEAD

From: Date: Fri, 13 Apr 2007 09:21:37 +0000
Subject: Re: dropping asp_tags in HEAD
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-28781@lists.php.net to get a copy of this message
""Stefan Walk"" <stefan.walk@gmail.com> schreef in bericht news:4858f9d90704130213h4b440ac4w7518943b10627439@mail.gmail.com... > On 13/04/07, Tomas Kuliavas <tokul@users.sourceforge.net> wrote: >> >> Surely we must to keep a setting just because two people in the world >> >> use it. >> >> I'm afraid their apps won't run on PHP6 anyway because of numerous >> >> major >> >> changes >> >> (already done and still planned), so one more cleanup won't hurt >> >> anyone. >> > >> > This isn't cleanup. This is dropping a feature without a similar >> > alternative. Short tags are problematic because of xhtml templates. >> > ASP tags collide with no (x)html markup, and they are short and easy >> > to type/read in templates. >> >> ASP tags do collide with some html markup. >> >> <td width=10%> >> >> Boom. >> >> I know. Value should be quoted. 'asp_tags = on' is yet another way to >> break php scripts. Some developers don't expect it and make typos in html >> attributes. > > Not "should be", it is a must. Quoting HTML 4.01: "In certain cases, > authors may specify the value of an attribute without any quotation > marks. The attribute value may only contain letters (a-z and A-Z), > digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46), > underscores (ASCII decimal 95), and colons (ASCII decimal 58)." > > So, your example is not HTML, so it doesn't show any collision. Actually it does, since browsers aren't as strict as the standards they "implement". The only real reason I can think of to remove ASP tags, would be to unclutter php.ini. As has often been mentioned here in internals, there is such a thing as "too much features". Apparently that goes for things like OO and typehinting, and as far as I'm concerned it also goes for php.ini (which is also why magic_quotes are being removed altogether right?). If that reason (and the tinyest speed improvement in PHP when it searches for an open tag) is not enough reason, then I guess it's better kept in. Just my ?0.02 - Ron

« previous php.internals (#28781) next »