Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44175 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86457 invoked from network); 5 Jun 2009 07:53:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2009 07:53:15 -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 209.85.222.199 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.222.199 mail-pz0-f199.google.com Received: from [209.85.222.199] ([209.85.222.199:60001] helo=mail-pz0-f199.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/E1-09243-AEEC82A4 for ; Fri, 05 Jun 2009 03:53:15 -0400 Received: by pzk37 with SMTP id 37so1193964pzk.29 for ; Fri, 05 Jun 2009 00:53:12 -0700 (PDT) Received: by 10.114.160.17 with SMTP id i17mr4916410wae.125.1244188392127; Fri, 05 Jun 2009 00:53:12 -0700 (PDT) Received: from ?216.145.54.158? (socks1.corp.yahoo.com [216.145.54.158]) by mx.google.com with ESMTPS id n33sm4525192wag.32.2009.06.05.00.53.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Jun 2009 00:53:11 -0700 (PDT) Message-ID: <4A28CEE4.10403@lerdorf.com> Date: Fri, 05 Jun 2009 00:53:08 -0700 User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Hannes Magnusson CC: Roman I , internals@lists.php.net References: <94.6F.05315.44EF11A4@pb1.pair.com> <77E6891A-AF77-47B5-94DB-FA69D4F7F198@roshambo.org> <4A28B16A.2040101@lerdorf.com> <7f3ed2c30906050043g3f014e63j6f74abb1f04373b0@mail.gmail.com> In-Reply-To: <7f3ed2c30906050043g3f014e63j6f74abb1f04373b0@mail.gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Is there a technical reason On Fri, Jun 5, 2009 at 07:47, Rasmus Lerdorf wrote: >> Nobody is going to pass a PHP script through an XML parser, and PHP >> itself will never be well-formed, so that is a lost cause. We'd have to >> start tossing CDATA blocks and write code like: >> >> if( 2 < 3 ) echo "2 is less than 3"; > > No you don't. & and < are perfectly legal in PIs > > >> And that just isn't going to happen. The only valid argument against >> short_tags itself is that it clashes with named PI tags and > have that same problem. > > > 4] NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] > | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | > [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] > | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF] The point still stands. If you are trying to parse PHP with an XML parser, you are doing it wrong. I have absolutely no problems annoying the one or two pedantic people who care about this for the benefit of thousands who don't. -Rasmus