Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44098 invoked by uid 1010); 14 Apr 2007 18:11:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44083 invoked from network); 14 Apr 2007 18:11:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Apr 2007 18:11:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:56071] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/4F-34376-16911264 for ; Sat, 14 Apr 2007 14:11:46 -0400 Received: from [192.168.200.104] (c-24-6-22-164.hsd1.ca.comcast.net [24.6.22.164]) (authenticated bits=0) by mail.lerdorf.com (8.13.8/8.13.8/Debian-3) with ESMTP id l3EIBcoR004291; Sat, 14 Apr 2007 11:11:38 -0700 Message-ID: <4621195A.2010404@lerdorf.com> Date: Sat, 14 Apr 2007 11:11:38 -0700 User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Bart de Boer 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> In-Reply-To: <4620F6B8.9080907@mediawave.nl> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] dropping asp_tags in HEAD From: rasmus@lerdorf.com (Rasmus Lerdorf) 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 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