Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28781 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24365 invoked by uid 1010); 13 Apr 2007 09:22:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24350 invoked from network); 13 Apr 2007 09:22:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2007 09:22:51 -0000 X-Host-Fingerprint: 195.225.34.5 fw01.axit.nl Received: from [195.225.34.5] ([195.225.34.5:25231] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/FC-47553-9EB4F164 for ; Fri, 13 Apr 2007 05:22:50 -0400 Message-ID: <93.FC.47553.9EB4F164@pb1.pair.com> To: internals@lists.php.net References: <461E894C.104@zend.com> <461E8AE8.8090208@krug.dk> <461E8E91.9000501@zend.com> <461E9008.6070701@gmail.com> <461E929A.3060601@zend.com> <4858f9d90704130048n67dd6b17s2e19a433873fc272@mail.gmail.com> <39254.195.22.180.233.1176451275.squirrel@avilys.eik.lt> <4858f9d90704130213h4b440ac4w7518943b10627439@mail.gmail.com> Date: Fri, 13 Apr 2007 11:21:37 +0200 Lines: 50 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response X-Posted-By: 195.225.34.5 Subject: Re: [PHP-DEV] dropping asp_tags in HEAD From: r.korving@xit.nl ("Ron Korving") ""Stefan Walk"" schreef in bericht news:4858f9d90704130213h4b440ac4w7518943b10627439@mail.gmail.com... > On 13/04/07, Tomas Kuliavas 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. >> >> >> >> 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