Hannes Magnusson wrote: > On Fri, Jun 5, 2009 at 07:47, Rasmus Lerdorf<ras...@lerdorf.com> 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 <?= does not >> have that same problem. > > <?= is not a valid target name either, so it has the 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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php