""Stefan Walk"" <[EMAIL PROTECTED]> schreef in bericht 
news:[EMAIL PROTECTED]
> On 13/04/07, Tomas Kuliavas <[EMAIL PROTECTED]> 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 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to