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 &lt; 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]

-Hannes

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to