Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28836 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79443 invoked by uid 1010); 14 Apr 2007 19:05:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 79428 invoked from network); 14 Apr 2007 19:05:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Apr 2007 19:05:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=bart@mediawave.nl; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=bart@mediawave.nl; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mediawave.nl from 194.109.24.23 cause and error) X-PHP-List-Original-Sender: bart@mediawave.nl X-Host-Fingerprint: 194.109.24.23 smtp-vbr3.xs4all.nl FreeBSD 4.6-4.9 Received: from [194.109.24.23] ([194.109.24.23:3732] helo=smtp-vbr3.xs4all.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/F3-34376-C0621264 for ; Sat, 14 Apr 2007 15:05:49 -0400 Received: from [192.168.0.195] (mediawave.xs4all.nl [194.109.253.196]) (authenticated bits=0) by smtp-vbr3.xs4all.nl (8.13.8/8.13.8) with ESMTP id l3EJ5b26044603; Sat, 14 Apr 2007 21:05:37 +0200 (CEST) (envelope-from bart@mediawave.nl) Message-ID: <46212604.60601@mediawave.nl> Date: Sat, 14 Apr 2007 21:05:40 +0200 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Rasmus Lerdorf CC: "Tijnema !" , Guilherme Blanco , ceo@l-i-e.com, Chad Daelhousen , Ron Korving , internals@lists.php.net References: <461E894C.104@zend.com> <39254.195.22.180.233.1176451275.squirrel@avilys.eik.lt> <4858f9d90704130213h4b440ac4w7518943b10627439@mail.gmail.com> <93.FC.47553.9EB4F164@pb1.pair.com> <461F7449.7060003@herballure.com> <37936.216.230.84.67.1176500697.squirrel@www.l-i-e.com> <46209A3F.8040701@mediawave.nl> <4620A3C1.8030701@mediawave.nl> <4620E566.8050300@lerdorf.com> <4620F6B8.9080907@mediawave.nl> <4621195A.2010404@lerdorf.com> In-Reply-To: <4621195A.2010404@lerdorf.com> Content-Type: multipart/alternative; boundary="------------040807050809090101010006" X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: [PHP-DEV] dropping asp_tags in HEAD From: bart@mediawave.nl (Bart de Boer) --------------040807050809090101010006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I think those exceptions would be acceptable for now. I like the concept of an XML document that contains PHP code. Just like you have XML documents that contain Javascript code. I think they should be parsable. Since PHP was made for the web, I think we should try to obey the rules of the web as much as possible. But that's just me. :) I understand it will be tough to banish short tags all together since so much code depends on it. Losing the ASP style tags is a step in the right direction at least. ... And now I'm gonna drink too much beer! Wishing everyone a great weekend! -Bart Rasmus Lerdorf wrote: > Bart de Boer wrote: > >> I feel I can't disagree with my hero. :) But is that really so? >> >> The XML spec says: >> >> PI ::= '' Char*)))? '?>' >> >> Doesn't Char* mean any char? >> >> All the parsers seem to accept '>' inside PI's without problems too. >> > > If you pick your standards carefully, sure. ;) > > I chose the PHP syntax before there was an XML spec. Back in the dark > ages where HTML was defined as an SGML DTD. In SGML-speak general delimiter called PIO, < is STAGO and > is PIC. In those early > HTML DTD's you couldn't have a PIO element that contained STAGO or PIC. > ISO-8879 has all the uglyness in it if you want to dig a bit, but even > with that it doesn't really tell the whole story of the conditions at > the time. > > The point being that it was a conscious decision to not try to strictly > comply with the specification at the time or to write a PHP DTD, but > instead to focus on convenience first and the spec second. You still > have plenty of things you can do today that doesn't match modern XML > specs. For example: > > '; ?> > > Or anything with ctrl chars in it. You can put a literal 0x07 char in a > quoted string, for example, and PHP will happily pass that through, but > that is also not allowed in the spec. > > -Rasmus > --------------040807050809090101010006--